Sha256: 0981451260d25e7ba9540470ad33e960bf7f12b7a75fd104c71561a56bf011ea

Contents?: true

Size: 530 Bytes

Versions: 2

Compression:

Stored size: 530 Bytes

Contents

# How long should the token be valid for?
# After this time, it will return Tokenable::Unauthorized
# You can set this to nil for tokens to never expire
Tokenable::Config.lifespan = 7.days

# The class in which your User resides.
Tokenable::Config.user_class = <%= name %>

# The secret used to create these tokens. This is then used to verify the
# token is valid. Note: Tokens are not encrypted, and container the user_id.
# You can change this to any 256-bit string
Tokenable::Config.secret = Rails.application.secret_key_base

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tokenable-ruby-0.3.0 lib/generators/templates/tokenable.rb.erb
tokenable-ruby-0.2.0 lib/generators/templates/tokenable.rb.erb