worried-breakfast-57531
01/27/2022, 5:31 AMdevelopment
mode, it seems to set SameSite=Lax
- is this expected? The browser’s set-cookie
says cookie blocked because it had the "SameSite=Lax" attribute but came from a cross-site response which was not the response to a top-level navigation
.damp-sunset-69236
01/28/2022, 6:47 AMworried-breakfast-57531
01/28/2022, 11:39 PM/self-service/registration/flows?id=XXX
, it shows 422 with a redirect_browser_to
, which I use to redirect the page. I see the Set-Cookie: ory_kratos_continuity=XXX
here<https://github.com/login/oauth/authorize?client_id=0d12569c0aee6c6fbb9d&redirect_u[…]%3Auser+user%3Aemail&state=dca086dc-7638-48a2-8e67-d1187b466892>
and then 302 on <http://127.0.0.1:4433/self-service/methods/oidc/callback/github?code=c34f199debb215031484&state=dca086dc-7638-48a2-8e67-d1187b466892>
session already available
which redirects me to /
but I’m not sure where I can get the identity
informationconst handleSubmit = async (values) => {
console.log('values', values)
try {
const { data } = await axios({
method: flow.ui.method,
url: flow.ui.action,
headers: {
Accept: 'application/json',
},
data: values
})
// If we ended up here, it means we are successfully signed up!
console.log('User session: ', data, data.identity)
// For now however we just want to redirect home!
return navigate(flow.return_to || '/')
} catch (err) {
handleFlowError(err, navigate, 'registration', setFlow)
}
}
handleSubmit
never gets to the data.identity
part because it always errors out with 422 for redirect to github/sessions/whoami
endpoint