You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unable to get the jwt-api example working when using the example react client and the example bun authorizer. I've reproduced the error in this repo. https://github.com/AJNandi/openauth-invalid-jwt-repro Steps in readme.
My jwt-api authToken verification is failing with a message Invalid access token.
I'm using OpenAuth 0.2.6.
The only changes I made to the example code:
Uses pnpm to organize the code as a monorepo
Moves subjects into a package /packages/shared-auth that is imported as @repo/shared-auth
Is there some config error with my api server or authorizer? Is the client not creating the jwt correctly? Login/auth flow works fine, but the jwt isn't getting verified in the jwt-api.
The only issue I could think of is:
In the react example the client.authorize call differs from the readme. The react example uses the "code" response:
I'm unable to get the jwt-api example working when using the example react client and the example bun authorizer. I've reproduced the error in this repo. https://github.com/AJNandi/openauth-invalid-jwt-repro Steps in readme.
My jwt-api authToken verification is failing with a message
Invalid access token
.I'm using OpenAuth 0.2.6.
The only changes I made to the example code:
/packages/shared-auth
that is imported as@repo/shared-auth
Is there some config error with my api server or authorizer? Is the client not creating the jwt correctly? Login/auth flow works fine, but the jwt isn't getting verified in the jwt-api.
The only issue I could think of is:
In the react example the
client.authorize
call differs from the readme. The react example uses the "code" response:openauth/examples/client/react/src/App.tsx
Line 61 in 131c552
But the ReadMe says to use the "token" response In cases where you do not have a server:
openauth/README.md
Line 267 in 131c552
Any help appreciated!
The text was updated successfully, but these errors were encountered: