Ayush6543
01/02/2023, 8:41 AMPPaii
01/02/2023, 11:39 AMrp
01/02/2023, 12:29 PMproductdevbook
01/02/2023, 1:11 PMproductdevbook
01/02/2023, 1:11 PMshrey07
01/02/2023, 2:17 PMserps
01/02/2023, 5:27 PMporcx
01/03/2023, 2:48 AMrp
01/03/2023, 3:38 AMAyush6543
01/03/2023, 3:58 AMmm888
01/03/2023, 4:12 AMmm888
01/03/2023, 4:16 AMrp
01/03/2023, 4:28 AMmib200
01/03/2023, 7:05 AMmib200
01/03/2023, 7:05 AMmib200
01/03/2023, 7:06 AMAyush6543
01/03/2023, 9:24 AMapp.use(
cors({
origin: "https://loquacious-crostata-a45e75.netlify.app",
allowedHeaders: ["content-type", ...supertokens.getAllCORSHeaders()],
credentials: true,
})
);
rp
01/03/2023, 11:15 AMAlankazam
01/03/2023, 1:08 PMproductdevbook
01/03/2023, 3:21 PMts
<script setup lang="ts">
import * as Session from 'supertokens-web-js/recipe/session'
onMounted(async () => {
if (await Session.doesSessionExist()) {
// since a session already exists, we redirect the user to the HomeView.vue component
window.location.assign('/home')
}
})
</script>
<template>
<IonPage>
<IonRouterOutlet id="main" />
</IonPage>
</template>
YadedYash
01/03/2023, 4:13 PMYadedYash
01/03/2023, 4:14 PMYadedYash
01/03/2023, 4:17 PMYadedYash
01/03/2023, 4:24 PMYadedYash
01/03/2023, 4:27 PMrp
01/03/2023, 4:43 PMproductdevbook
01/04/2023, 5:21 AMts
async function onGithubPressed() {
const authorisationURL = props.mobile
? `${MOBILE_URL}/auth/callback/github`
: `${FRONTEND_URL}/auth/callback/github`
const authUrl = await ThirdPartyEmailPassword.getAuthorisationURLWithQueryParamsAndSetState({
providerId: 'github',
// This is where github should redirect the user back after login or error.
// This URL goes on the github dashboard as well.
authorisationURL,
})
if (props.mobile)
window.open(authUrl, '_self')
else
window.location.assign(authUrl)
}
Failed to fetchDanielAtStruggly
01/04/2023, 4:23 PMrp
01/04/2023, 5:20 PMmonsterdonio
01/04/2023, 9:24 PMexp
field in the JWT? I'm trying to update it via the createNewSession
override as mentioned in the docs https://supertokens.com/docs/passwordless/common-customizations/sessions/with-jwt/custom-claims but it doesn't seem to be changing the value in the generated token. Are we not able to change the claims that supertokens adds by default: sub, iss, exp, iat?