Skip to content

danielnord/node-azureTokenValidation

Folders and files

NameName
Last commit message
Last commit date
Sep 9, 2020
Sep 9, 2020

Repository files navigation

node-azureTokenValidation

Description

This class will validate id tokens from Azure B2C by using the public key signing information

Azure

Other

Node Dependencies

  • jsonwebtoken
  • node-fetch
  • node-forge

Example

Validate an ID token

const atv = new AzureTokenValidation()
const idToken = 'THE_AZURE_ID_TOKEN_HERE' // This will be sent in the callback from Azure B2C

atv.validate(idToken).then(result => {
    if (result) {
        // Token is valid
        console.log(result)
    } else {
        // Token is not valid
    }
})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published