Sha256: da4d32266bdbffe3b4629bbc530f2cf61d2cf7dec6860b807134b7bef66ff94b

Contents?: true

Size: 392 Bytes

Versions: 11

Compression:

Stored size: 392 Bytes

Contents

# :namespace
module Tokens
  
# One-time tokens can only be used once to authenticate an account.
class OneTime < Credentials::Token
  # Updates the token's state to reflect that it was used for authentication.
  #
  # One-time tokens become invalid after they are spent.
  #
  # Returns the token instance.
  def spend
    destroy
  end
end  # class Tokens::OneTime

end  # namespace Tokens

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
authpwn_rails-0.12.1 app/models/tokens/one_time.rb
authpwn_rails-0.12.0 app/models/tokens/one_time.rb
authpwn_rails-0.11.1 app/models/tokens/one_time.rb
authpwn_rails-0.11.0 app/models/tokens/one_time.rb
authpwn_rails-0.10.12 app/models/tokens/one_time.rb
authpwn_rails-0.10.11 app/models/tokens/one_time.rb
authpwn_rails-0.10.10 app/models/tokens/one_time.rb
authpwn_rails-0.10.9 app/models/tokens/one_time.rb
authpwn_rails-0.10.8 app/models/tokens/one_time.rb
authpwn_rails-0.10.7 app/models/tokens/one_time.rb
authpwn_rails-0.10.6 app/models/tokens/one_time.rb