Class: Flipt::JWTAuthentication
- Inherits:
-
AuthenticationStrategy
- Object
- AuthenticationStrategy
- Flipt::JWTAuthentication
- Defined in:
- lib/flipt_client/models.rb
Overview
JWTAuthentication is a strategy that uses a JWT token for authentication
Instance Method Summary collapse
-
#initialize(token) ⇒ JWTAuthentication
constructor
A new instance of JWTAuthentication.
- #strategy ⇒ Object
Constructor Details
#initialize(token) ⇒ JWTAuthentication
Returns a new instance of JWTAuthentication.
33 34 35 |
# File 'lib/flipt_client/models.rb', line 33 def initialize(token) @token = token end |
Instance Method Details
#strategy ⇒ Object
37 38 39 40 41 |
# File 'lib/flipt_client/models.rb', line 37 def strategy { jwt_token: @token } end |