validate-azure-ad-token

Home > validate-azure-ad-token > validate

validate() function

Validate azure active directory access token

Signature:

export default function validate(accessToken: string, { applicationId, audience, scopes, tenantId }: IValidationOptions): Promise<Jwt>;

Parameters

Parameter Type Description
accessToken string valid access token received from azure
{ applicationId, audience, scopes, tenantId } IValidationOptions  

Returns:

Promise<Jwt>