ftos.identity.authn.getCurrentUserAccessToken
IMPORTANT!
Starting with v24.3.0, this is renamed from getCurrentUserAccessToken to ftos.identity.authn.getCurrentUserAccessToken.
Starting with v24.3.0, this is renamed from getCurrentUserAccessToken to ftos.identity.authn.getCurrentUserAccessToken.
Retrieves a FintechOS Identity Provider access token for the currently logged user.
This is a routes method for business service components.
Syntax
Copy
function ftos.identity.authn.getCurrentUserAccessToken(): string
Return Value
Returns a string containing the access token for the currently logged user.
Examples
In this example, we retrieve an API access token for the currently logged user and store it in the myToken variable.
Copy
var myToken = ftos.identity.authn.getCurrentUserAccessToken()