Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/splits-io. a speedrunning data store and analysis engine splits.io
Something went wrong. Try again.
1234567891011121314require 'active_support/concern'
module AuthenticatingUser extend ActiveSupport::Concern
included do def self.authenticate(name, method, secret) raise 'Invalid authentication method' unless method == :twitch
User.where(name: name, twitch_token: secret) end endend