Skip to content

Is there a way to not call every single time the /whoami Kratos API? Is there a way to use the cookie session only? #1509

Answered by vinckr
frederikhors asked this question in Q&A
Discussion options

You must be logged in to vote

You can probably solve this in your application logic, check for sessions with /whoami when you see fit, and omit the check otherwise.

But usually calling /sessions/whoami will be the straightforward way.

What was the original motivation to have less calls to /whoami?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@frederikhors
Comment options

@thomasboni
Comment options

@Benehiko
Comment options

Answer selected by vinckr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants