colossal-appointment-48082
06/07/2023, 5:45 PMdazzling-oyster-96577
06/07/2023, 5:58 PMcolossal-appointment-48082
06/07/2023, 5:59 PMcolossal-appointment-48082
06/07/2023, 5:59 PMdazzling-oyster-96577
06/07/2023, 5:59 PMhttpOnly
restrictioncolossal-appointment-48082
06/07/2023, 5:59 PMcolossal-appointment-48082
06/07/2023, 5:59 PMdazzling-oyster-96577
06/07/2023, 6:04 PMstrict
colossal-appointment-48082
06/07/2023, 6:05 PM<DescopeAuthProvider
projectId={import.meta.env.VITE_DESCOPE_PROJECT_ID}
baseUrl="<http://auth.app.dopt.com>"
>
it doesn't work because of cors. So I'm not even at the point of getting a refresh token backcolossal-appointment-48082
06/07/2023, 6:05 PMcolossal-appointment-48082
06/07/2023, 6:07 PMsquare-vr-55083
06/07/2023, 6:29 PMsquare-vr-55083
06/07/2023, 6:29 PMcolossal-appointment-48082
06/07/2023, 6:30 PMuse localhost in the cookie (or keep empty) ORdo you mean in i should put localhost as my custom domain?
Token response methodor put localhost in approved domain or both?
square-vr-55083
06/07/2023, 6:32 PMManage in response body
, in that case it will store refresh and session tokens in local storagecolossal-appointment-48082
06/07/2023, 6:33 PMcolossal-appointment-48082
06/07/2023, 6:33 PMcolossal-appointment-48082
06/07/2023, 6:34 PM<DescopeAuthProvider
projectId={import.meta.env.VITE_DESCOPE_PROJECT_ID}
baseUrl=?
>
colossal-appointment-48082
06/07/2023, 6:34 PMcolossal-appointment-48082
06/07/2023, 6:36 PMsquare-vr-55083
06/07/2023, 6:43 PMcolossal-appointment-48082
06/07/2023, 7:01 PMsessionTokenViaCookie
in the DescopeAuthProvider?
but other than that is it the same? are the access patterns the same in both methods in the react-sdk? what about the web-js-sdk?
Edit: what about automatic token refresh? and sending the token to the backend for session validation?
I would really not like to have different logic for local dev and proddazzling-oyster-96577
06/07/2023, 7:01 PMsessionTokenViaCookie
will force send the session token as a cookie but not the refresh token. The refresh token is handled in the console settingsdazzling-oyster-96577
06/07/2023, 7:03 PMsamesite=strict
is not really relevant in dev. It should behave the same way if you're using the react-sdk, correct me if I'm wrong @great-diamond-35515?colossal-appointment-48082
06/07/2023, 8:00 PM