Creates a new Zyntopia OAuth authentication strategy.
Zyntopia-specific OAuth configuration
Clears the cached token, forcing a new token request on next use.
Gets authentication headers, automatically handling token refresh if needed.
A promise that resolves to the authentication headers.
Gets the configured OAuth endpoints and settings.
Configuration information (excluding sensitive data).
Gets the current environment this strategy is configured for.
The environment ('production', 'staging', or 'development').
Gets information about the current cached token.
Token information or null if no token is cached.
Gets the Zyntopia-specific configuration.
Zyntopia configuration (excluding sensitive data).
Checks if this strategy is configured for development/testing.
True if configured for development or staging, false for production.
Checks if this strategy is configured for production environment.
True if configured for production, false otherwise.
Manually refreshes the cached token.
A promise that resolves to new authentication headers.
StaticforCreates a ZyntopiaOAuthStrategy instance pre-configured for development.
Zyntopia client ID
Zyntopia client secret
OptionalcustomScopes: stringOptional custom scopes (defaults to development scopes)
Configured ZyntopiaOAuthStrategy for development.
StaticforCreates a ZyntopiaOAuthStrategy instance pre-configured for production.
Zyntopia client ID
Zyntopia client secret
OptionalcustomScopes: stringOptional custom scopes (defaults to production scopes)
Configured ZyntopiaOAuthStrategy for production.
StaticforCreates a ZyntopiaOAuthStrategy instance pre-configured for staging.
Zyntopia client ID
Zyntopia client secret
OptionalcustomScopes: stringOptional custom scopes (defaults to staging scopes)
Configured ZyntopiaOAuthStrategy for staging.
StaticgetGets the default scopes for a specific environment.
The environment to get scopes for
Default scopes for the specified environment.
StaticgetGets the token endpoint for a specific environment.
The environment to get endpoint for
Token endpoint URL for the specified environment.
StaticvalidateValidates Zyntopia-specific configuration requirements.
Configuration to validate
Zyntopia-specific OAuth 2.0 authentication strategy. Pre-configured for Zyntopia services with standard endpoints, scopes, and authentication flows. Extends GenericOAuthStrategy with Zyntopia-specific defaults and configurations.