fief-dev / fief-js

Fief client for JavaScript
https://docs.fief.dev/integrate/javascript/
MIT License
9 stars 3 forks source link

React: Two requests to fief - one with error #5

Closed michaldev closed 1 year ago

michaldev commented 1 year ago

Hi. I have a bug with library in react.

Zrzut ekranu 2022-12-20 o 23 19 48

I have two requests for fief. First one with status 200, and second one with code 400 (error: "invalid_client"). I receive correctly token, which works very well with fastapi server. Routing works with permissions too.

Zrzut ekranu 2022-12-20 o 23 20 11

I have default config/method of integration from your docs.

michaldev commented 1 year ago

Ok, the problem is probably in strict mode. I'll confirm tommorow.

frankie567 commented 1 year ago

Yes, that's something that was identified by another user: https://github.com/orgs/fief-dev/discussions/92#discussioncomment-3832167

I'm not really sure how to avoid this in the library 🤔

frankie567 commented 1 year ago

So, almost a year later (😅), I got the idea to solve this! It'll be part of the next release :)