Replies: 1 comment
-
According with documentation: https://www.ory.sh/docs/identities/sign-in/check-session-token-cookie-api
I close the Q&A |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, currently we have a Kratos with a phone app. We have
oidc/google
and password enabled, works fine and both methods obtain asession-token
. now we want to launch a web app with the same content of our app. for password methods we can obtain thesession-token
but when we try withoidc/google
with the same logic kratos returninvalid_grant
(we are generating the url with a react plugin`.I explore a little the flow of kratos examples call
self-service/login/browser
and then POST toself-service/login
with cookie, flow_id, and in the body andprovider
csrf_token
this generate a cookie and redirect to google oauth. then google redirect toself-service/methods/oidc/callback/google
make a couple redirect then set a cookieory_kratos_session
.Is possible instead generate
ory_kratos_session
generatesession-token
? like in the native apps?in the app we sent a POST to
self-service/login
with provide and code and works. when we try in web the same logic kratos show the errorinvalid_grant
.thanks
Beta Was this translation helpful? Give feedback.
All reactions