Error while when i hit the login enpoint #182
Unanswered
patrickkabwe
asked this question in
Q&A
Replies: 1 comment
-
It's hard to tell what's going wrong here without a clear way to reproduce it, so please share more info or a reproduction, if possible. Here are a few things that might point you in the right direction:
Hope this helps. Please follow up if you figure out what's going on. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
"Firebase ID token has invalid signature. See https://firebase.google.com/docs/auth/admin/verify-id-tokens for details on how to retrieve an ID token."
import { setAuthCookies } from "next-firebase-auth";
import initAuth from "../../../firebase/initAuth"; // the module you created above
initAuth();
export default async (req, res) => {
try {
await setAuthCookies(req, res);
} catch (error) {
res.status(400).send({ error: error.message, success: false });
}
};
Please HELP
Beta Was this translation helpful? Give feedback.
All reactions