readme
KKinde
•Created by readme on 11/19/2024 in #💻┃support
Invalid Token Error
nvm i found the error @Ages @TotalScrub I named my file
route..js
instead of route.js
. You can close this thread now. Thank you for your help.14 replies
KKinde
•Created by readme on 11/19/2024 in #💻┃support
Invalid Token Error
i have also verified that the token is valid by copy pasting my token to the kinde jwt decoder website.
14 replies
KKinde
•Created by readme on 11/19/2024 in #💻┃support
Invalid Token Error
after the middleware i directly have my route.js
14 replies
KKinde
•Created by readme on 11/19/2024 in #💻┃support
Invalid Token Error
i do not have any token verification configured for this route after the middleware stage. Also after updating as you can see the message has changed to
getUser [TypeError: Cannot read properties of null (reading 'sub')]
. Which could mean that the wherever this additiional step is taking place it is returing null
after decoding the token.14 replies
KKinde
•Created by readme on 11/19/2024 in #💻┃support
Invalid Token Error
Yes I am sending the exact same header for the edit requests. I’ve named it
x-kinde-token
. Even when I log the token in the middleware the token and tye resultant decoded header both get logged. And after the middleware I don’t really have a auth check for this route. So idk where is this extra getUser check being made and instead of a 200 I get a 405 method not allowed14 replies
KKinde
•Created by readme on 11/19/2024 in #💻┃support
Invalid Token Error
middleware.js
/api/receipts/edit/[id]/route.js
14 replies
KKinde
•Created by readme on 11/19/2024 in #💻┃support
Invalid Token Error
Just to give an idea of my code and workflow im attaching the code
Modal.jsx worker method
sendUpdateReceipt.js
14 replies
KKinde
•Created by readme on 10/28/2024 in #💻┃support
Next.js Refresh Token null
@Daniel_Kinde sorry for the late reply. I wrapped the application and now i can see the refresh tokens. But when should i use it. I know that they must be used when the previous token gets expired but where in the application should one use it. Thank you.
7 replies
KKinde
•Created by readme on 10/28/2024 in #💻┃support
Next.js Refresh Token null
i am also attaching my code for reference
7 replies