We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0113349 + dce08ea commit 7883e7dCopy full SHA for 7883e7d
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