https://supertokens.com/
Join Discord
Hi, can I send SMS using API, to a phone number that is not saved in the SuperTokens user management...
d

der_suchende

over 2 years ago
Hi, can I send SMS using API, to a phone number that is not saved in the SuperTokens user management database? Thanks
d
r
  • 2
  • 3
  • 34
`thirdPartySignInAndUp` gives me the following error. CORS configuration should be good as it works ...
m

majskiy

over 2 years ago
thirdPartySignInAndUp
gives me the following error. CORS configuration should be good as it works fine for normal sign in/up with credentials. Any ideas?
m
r
  • 2
  • 10
  • 34
🤠 good day folks. what is the best approach for handling unit tests with supertokens python SDK? un...
d

d3adb0y

over 2 years ago
🤠 good day folks. what is the best approach for handling unit tests with supertokens python SDK? unfortunately i have procrastinated on this for way too long. is there any easy mechanism to mock the user session? i know about the recipe specific API overrides as I am using some of those to customize the auth flow. is there a way to mock the response for user session as well? Can I override the
verify_session
function in the session.init()?
d
r
  • 2
  • 20
  • 34
hello , i am a supertoken user . i have integrated supertokens with my application. And using sessio...
j

jj_9475

over 3 years ago
hello , i am a supertoken user . i have integrated supertokens with my application. And using session context. i need to individually test react components for my unit test. but i cant seem to mock useSessionContext. could you please help me.
j
r
  • 2
  • 3
  • 34
hey :). we are having an issue with the redirect uri returned for Apple on the web. the code that c...
c

cg.vols

over 3 years ago
hey :). we are having an issue with the redirect uri returned for Apple on the web. the code that creates the redirect uri uses the API base path instead of the UI base path.
c
r
  • 2
  • 26
  • 34
I'm having trouble with NestJS + GraphQL, I've seen there were older messages about this in discord ...
f

fragordie

over 3 years ago
I'm having trouble with NestJS + GraphQL, I've seen there were older messages about this in discord but it didn't really help... Honestly I have no clue of how, according to the supertokens documentation of vanilla graphql on nodejs, this should be done:
ts
@Injectable()
export class GQLAuthGuard implements CanActivate {
  async canActivate(context: ExecutionContext): Promise<boolean> {
    const ctx = GqlExecutionContext.create(context).getContext();

    let err = undefined;
    // You can create an optional version of this by passing {sessionRequired: false} to verifySession
    await verifySession({ sessionRequired: false })(
      ctx.req,
      ctx.res,
      (res) => {
        err = res;
      },
    );

    if (ctx.res.headersSent) {
      throw new STError({
        message: 'RESPONSE_SENT',
        type: 'RESPONSE_SENT',
      });
    }

    if (err) {
      throw err;
    }

    return true;
  }
}
f
r
  • 2
  • 43
  • 34
Hi, i am using verify middleware in route and i have also my own middleware which i used to to set s...
c

cpalta8102

almost 4 years ago
Hi, i am using verify middleware in route and i have also my own middleware which i used to to set some data into session . in my own middleware i used next() function but after using verify middleware next function it show me a error "TypeError: Cannot read property 'secure' of undefined"
c
r
  • 2
  • 29
  • 34
Hello. If I create a instance of axios, supertoken is not detecting session cookies. I am using supe...
s

soumya0373

over 1 year ago
Hello. If I create a instance of axios, supertoken is not detecting session cookies. I am using supertokens-web-js in nuxt.js 2 // Here is my code plugins/axios-cache-setup.js
import axios from 'axios'
import { setupCache } from 'axios-cache-interceptor/dev'

export default function ({ $config }, inject) {
  // Create axios instance
  const axiosInstance = axios.create({
    baseURL: $config.baseURL, 
  })
   // Set up caching
  // Set axios instance to Nuxt context
  const axiosWithCache = setupCache(axiosInstance, {
    methods: ['get', 'post'],
    debug: console.log,
  })

  inject('axiosCache', axiosWithCache)
}
s
r
  • 2
  • 14
  • 33
hello, I had some question regarding session sharing across subdomains. At the moment im deploying o...
a

abyssalhaze

over 1 year ago
hello, I had some question regarding session sharing across subdomains. At the moment im deploying on running on localhost. I have the main domain localhost:3000/ and a subdomain blog.localhost:3000/. The problem im coming across is that when i access the subdomain it redircts me to the login page to login and even if i do login it redirects me back to the login page. The session returns unauthorized. I looked into session sharing and the sessionTokenFrontendDomain i set to ".localhost" but in the caution section of the documentation it says I should not set it to localhost. I instead have indeed declared on my /etc/hosts file the subdomain for blog.localhost. However the problem persists. Am i missing a step? Also do i keep the sessionTokenFrontendDomain with the mention in the hosts file or i remove it?
a
r
  • 2
  • 24
  • 33
Hi, I was wondering how to create a custom signin/signup UI for a NextJS integration. I am currentl...
m

michael_pxr

over 1 year ago
Hi, I was wondering how to create a custom signin/signup UI for a NextJS integration. I am currently successfully using the pre build UI [1], however I'm not sure how to start creating a custom UI. - Should it be in the same file (
pages/auth/[[...path]].tsx
)? If so, where do I put my components? If not, which file should I use? - The example of the custom email password signin [2] only shows the callback function. Is there an example of building a custom UI in NextJS? - Is there a certain structure to keep in mind such that I can easily later add alternative signin/signup methods? [1]: https://supertokens.com/docs/emailpassword/nextjs/setting-up-frontend [2]: https://supertokens.com/docs/emailpassword/custom-ui/email-password-login
m
r
  • 2
  • 4
  • 33
Previous373839Next

SuperTokens.com

SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).

Powered by