Verify bearer token against DCR authorization server
Supports both self-hosted and external DCR modes by calling the /oauth/verify endpoint (or equivalent external URL).
Bearer token to verify (without "Bearer " prefix)
Verification endpoint URL (self-hosted or external)
Verification result with provider tokens
Error if verification fails
const result = await verifyBearerToken( token, 'http://localhost:3456/oauth/verify');const auth = provider.toAuthProvider(result.providerTokens); Copy
const result = await verifyBearerToken( token, 'http://localhost:3456/oauth/verify');const auth = provider.toAuthProvider(result.providerTokens);
const result = await verifyBearerToken( token, 'https://auth.example.com/oauth/verify');const auth = provider.toAuthProvider(result.providerTokens); Copy
const result = await verifyBearerToken( token, 'https://auth.example.com/oauth/verify');const auth = provider.toAuthProvider(result.providerTokens);
Verify bearer token against DCR authorization server
Supports both self-hosted and external DCR modes by calling the /oauth/verify endpoint (or equivalent external URL).