object containing the user id and the email
Signs a token with the given payload and secret
The payload to sign
The secret to sign the token with
Optionaloptions: SignTokenOptionsOptional sign options
verifies a given token against the appSessionSecret
Verify a token when a request is received from a http endpoint check headers, queryString and cookies
request object from the endpoint
creates a token when an id and email are provided