Skip to content

A way to get session token. #165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
PriyanshuPz opened this issue Apr 12, 2025 · 0 comments
Open

A way to get session token. #165

PriyanshuPz opened this issue Apr 12, 2025 · 0 comments

Comments

@PriyanshuPz
Copy link

Use case

I am working on a project where we have backend in hono and frontend is a mobile app in flutter. I tried

But implemented auth with clerk_flutter as it gives better control. I am using riverpod for state mangement.

Proposal

The problem I am facing is when i sign in need a way to save latest session token that I can use in Authentication header while making request to my backend with is using this (Implementation)[https://clerk.com/changelog/2023-11-08] for user auth vaildation.
I tried with lastSession that sdk provides but failed as I get expired token error. Also, I am not able to determine if user is authenticated or not with the help of session token (if exists locally then it authenticated else no).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant