Class: AuthProviders::BearerTokenProvider
- Inherits:
-
Object
- Object
- AuthProviders::BearerTokenProvider
- Defined in:
- app/services/auth_providers/bearer_token_provider.rb
Overview
Interface for Bearer token providers
Direct Known Subclasses
Instance Method Summary collapse
-
#valid?(_token) ⇒ Boolean
Checks if the given bearer token is valid.
Instance Method Details
#valid?(_token) ⇒ Boolean
Checks if the given bearer token is valid.
Implementations should perform all necessary validation (e.g., signature, claims).
16 17 18 |
# File 'app/services/auth_providers/bearer_token_provider.rb', line 16 def valid?(_token) raise NotImplementedError, 'Subclasses must implement valid?' end |