Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

create jwt token typescript

//The recommended way is to generate your token on the serverside, anyway:
npm install jsonwebtoken --save
npm install @types/jsonwebtoken --save

import * as jwt from 'jsonwebtoken';

let token = jwt.sign({ anyObject: 'here..' }, 'your super secret password!!');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #jwt #token #typescript
ADD COMMENT
Topic
Name
8+2 =