JWT
JWT stands for Json Web Tokens, they are encrypted Json objects sent by the website. We use them to transmit confidential informations or verify your identity
Get the JWT
instance.getVariable().then((client : any) =>{ //ligne 143
client.getJWT().then(
(newJwt : string)=>{
//Your api call
})
)
})const res = await fetch(api, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${jwt}` // Add the JWT to the Authorization header
}
})How to use a Middleware
Get your secret


Last updated