Method: Unit::ApiToken::Customer.create_customer_token_with_jwt
- Defined in:
- lib/unit/models/api_token/api_token.rb
.create_customer_token_with_jwt(customer_id:, scope:, jwt_token: nil) ⇒ UnitResponse, UnitError
Create customer token using JWT by calling Unit’s API
69 70 71 72 |
# File 'lib/unit/models/api_token/api_token.rb', line 69 def create_customer_token_with_jwt(customer_id:, scope:, jwt_token: nil) request = CreateTokenUsingJwtRequest.new(customer_id, scope, jwt_token) Unit::Resource::ApiTokenResource.create_customer_token(request) end |