We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0113349 commit dce08eaCopy full SHA for dce08ea
src/auth-strategy.ts
@@ -52,7 +52,7 @@ export const createAuthStrategy = (
52
let user: User | null = null;
53
54
if (pluginOptions.useEmailAsIdentity) {
55
- if (typeof jwtUser.email !== "string") {
+ if (!jwtUser.email || typeof jwtUser.email !== "string") {
56
payload.logger.warn(
57
"Using email as identity but no email is found in jwt token",
58
);
0 commit comments