Skip to content

Jwt created by verify() is not setting signingKey  #35

Open
@safm

Description

@safm

Calling .compact() on jwt returned by verify method is throwing an error.

njwt.verify( token, signinKey, function ( err, jwt ) {
    if ( err ) {
        console.log( "error", err, "\n\n" );
        res.send( 401 );
    } else {
    	jwt.setExpiration();
        var new_token = jwt.compact(); //this line throws an error "Signing key is required"
        res.status( 200 ).send( "You are logged out" );
    }
} );

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions