app-examples
app-examples copied to clipboard
CSRF token is not valid
Hi, when I click the APP icon in the board, it show me a login button. After select the developer team and click Add again, I got this error: CSRF token is not valid
Hi @natebowang
Sorry I missed this. I have put an automation in place to be notified of new issues on this repo, so should be able to respond much quicker now.
Were you seeing this error from one of the app-examples? or which app were you running when you saw this error? Any other details you can provide would be super helpful:
- was it using webSDK + REST API? Or only one or the other?
You can also try to clear the miro cookies and that sometimes will help the issue. For example I have a screenshot below which shows clearing the cookies from Chrome -> View -> Developer -> Developer Tools -> Application -> Storage -> Cookies -> https://miro.com -> Clear
Please let me know if that solved the issue!
I'm not OP, but I came across this thread because I:
- Ran
npx create-miro-app@latest
(next.js and TypeScript) - Installed my app in my developer team
- Loaded the app in Miro
- Clicked on the "Login" button in the app in Miro
- Scroll inside the little panel (not a modal like the videos show, though "not matching the videos" is par for this particular course) so that I can choose the Team.
- Click "Add"
- Error
However, if instead I manually go to locahost:3000
, and click the "Login" button there, the login flow works. I can then reload the app in Miro, and it will work (already logged in).
Thanks for sharing your particular solution @dncrews! Which particular video are you referring to which is not matching? Want to make sure I can take a look and update it if need be.