Class: Zesty::Auth
- Inherits:
-
Object
- Object
- Zesty::Auth
- Defined in:
- lib/zesty/auth.rb
Constant Summary collapse
- AUTH_URL =
"https://auth.api.zesty.io"
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(**options) ⇒ Auth
constructor
A new instance of Auth.
- #login(email, password) ⇒ Object
- #verify_token(token) ⇒ Object
Constructor Details
#initialize(**options) ⇒ Auth
Returns a new instance of Auth.
10 11 12 |
# File 'lib/zesty/auth.rb', line 10 def initialize(**) @options = end |
Class Method Details
.get_token(email, password) ⇒ Object
6 7 8 |
# File 'lib/zesty/auth.rb', line 6 def self.get_token(email, password) self.new.login(email, password).dig(:meta, :token) end |