Cheetah
10/23/2022, 9:40 AM{api_domain}{api_base_path}/dashboard
.
Im using Python/Fastapi
Can anyone help me?Jake
10/23/2022, 11:04 AMcreateNewSession
, what is the best way to refresh this information? I use input.userId
to lookup the info to put into the access token. Also wondering if it's the right spot, I need to access the info on the client and the serverrp
10/23/2022, 3:20 PMrp
10/23/2022, 3:21 PMdreamer
10/24/2022, 12:56 AMverifySession
https://nextjs.org/docs/advanced-features/middlewareVrl
10/24/2022, 1:04 AMrp
10/24/2022, 4:05 AMrp
10/24/2022, 4:06 AMAyush6543
10/24/2022, 4:10 AMn1ru4l
10/24/2022, 8:29 AMhttps://example.com/auth/org?id=oidc_provider_id
)
3. People visiting this link start the OAuth2 OIDC login flow with the organization specific OIDC provider
4. Users that newly register/log in are automatically added to the specific organization
I am now trying to figure out how to handle this on the SuperTokens Next.js side. Within the getServerSideProps
function of the auth
route I can load the specific integration (id, secret and issuer url) from the database. However, it is unclear to me on how I would then utilize this information with the SuperTokens SDK (since it is a singleton that is initialized once and cannot be initialised per request ๐ค .
Do you have any pointers here?rp
10/24/2022, 8:39 AMkawthar.mahboubi
10/24/2022, 9:58 AMgwenael
10/24/2022, 10:09 AMgwenael
10/24/2022, 10:11 AMgwenael
10/24/2022, 10:11 AMrp
10/24/2022, 10:18 AMJokcy
10/24/2022, 12:07 PMMusibat
10/24/2022, 12:36 PMlet userInfo = await Passwordless.getUserById(input.userId)
to get the user info, i get the error Error: SuperTokens core threw an error for a GET request to path: '/recipe/user' with status code: 400 and message: Please provide exactly one of userId, email or phoneNumber
. I have tried it with other recipes like EmailPassword
and ThirdParty
it works.muhajirdev
10/24/2022, 3:13 PMAdiGutner
10/24/2022, 3:15 PMAntonyBush
10/24/2022, 3:26 PMjin49
10/24/2022, 8:19 PMsupertokens_python.recipe.session.framework.django.asyncio.verify_session
and i'm wondering what's the best way to proceed.almmello
10/24/2022, 8:40 PMrp
10/25/2022, 4:09 AMBRBT
10/25/2022, 7:27 AMjs
import { useEffect } from 'react';
import Link from 'next/link'
import { EmailPasswordAuth } from 'supertokens-auth-react/recipe/emailpassword';
import Session from 'supertokens-auth-react/recipe/session';
import EmailPassword from "supertokens-node/recipe/emailpassword";
import supertokens from 'supertokens-node'
import { backendConfig } from '../config/backendConfig'
supertokens.init(backendConfig())
export default function Navbar() {
useEffect( () => {
Session.getUserId().then(userID =>
EmailPassword.getUserById(userID).then( user =>
console.log(user.email)
)
)
}, [])
Jokcy
10/25/2022, 12:22 PMsignInUpPOST
how to know the signInUp accessToken from signInUp response is provided by which Provider? I only find a key user.thirdparty.id
but it seems not used for this purpose. I need to get user info using this accessToken from github and save some user info into metadata.Jokcy
10/25/2022, 1:15 PMGET /users
will not response metadata?BRBT
10/25/2022, 5:10 PMNoodles
10/25/2022, 9:04 PMunhandledRejection: Error: Initialisation not done. Did you forget to call the SuperTokens.init function?
error, and I have to log out and log back in for it to go away. Any ideas?Jake2222
10/26/2022, 3:00 AM