Sign in

findToken

findToken(tokens?: AccessToken[], resource?: string, scopes?: string): AccessToken | undefined

Finds a specific access token in an array based on resource and scopes.

Parameters

ParameterTypeDescription
tokens?AccessToken[]The array of access tokens.
resource?stringSpace-separated resource indicators.
scopes?stringSpace-separated scopes.

Returns

AccessToken | undefined

The matching AccessToken, or undefined if not found.

© 2024 MonoCloud. All rights reserved.