login, logout, refresh, and me auth operations.
Identifying Users Via The Authorization Header
In addition to authenticating via an HTTP-only cookie, you can also identify users via theAuthorization header on an HTTP request.
Example:
Authorization: JWT header, the Authorization: Bearer header, and the auth cookie, in that order. Set the root auth.jwtOrder option to change the order or leave a method out.
Omitting The Token
In some cases you may want to prevent the token from being returned from the auth operations. You can do that by settingremoveTokenFromResponses to true like so:
External JWT Validation
When validating FrogBot-generated JWT tokens in external services, use the processed secret rather than your original secret key:Note: FrogBot processes your secret using SHA-256 hash and takes the first
32 characters. This processed value is what’s used for JWT operations, not
your original secret.