passport-jwt#VerifiedCallback TypeScript Examples

The following examples show how to use passport-jwt#VerifiedCallback. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: jwt.strategy.ts    From Phantom with MIT License 6 votes vote down vote up
/**
   * @author Aya Abohadima
   * @description validate function to check correct object com from token
   * @param payload the object created from token
   * @param done 
   * return token object 
   */
  async validate(payload: any, done: VerifiedCallback) {
    return payload;
  }
Example #2
Source File: passport.ts    From budget-node with GNU General Public License v3.0 5 votes vote down vote up
passport.use(new JwtStrategy(passportOpts, function (jwtPayload: any, done: VerifiedCallback) {
  done(null, jwtPayload);
}));