Class: Passwordless::UrlSafeBase64Generator
- Inherits:
-
Object
- Object
- Passwordless::UrlSafeBase64Generator
- Defined in:
- lib/passwordless/url_safe_base_64_generator.rb
Overview
Generates random numbers for Session records
Instance Method Summary collapse
-
#call(_session) ⇒ String
Passwordless’ default random string strategy.
Instance Method Details
#call(_session) ⇒ String
Passwordless’ default random string strategy. Generates a url safe base64 random string. to generators so you can (optionally) use it for generating your tokens.
11 12 13 |
# File 'lib/passwordless/url_safe_base_64_generator.rb', line 11 def call(_session) SecureRandom.urlsafe_base64(32) end |