https://supertokens.com/
Join Discord
Hello support. I'm tryng to setup the front end sdk for react native on a expo project with react na...
a

alejanky

about 2 years ago
Hello support. I'm tryng to setup the front end sdk for react native on a expo project with react native web. When i try to use the init function. it says that the domain name is invalid but am pretty sure it is and have tested with postman. is there something that im missing or it could be something about the expo and react native web itself that are not compatible. I also tried the web version on it and it seem like it worked. but i dont know if that will be able to work on the andoid and ios side of the app. Ty for you help and if there anything else you need im glad to provide it
a
r
n
  • 3
  • 14
  • 31
Hey! I'm integrating supertoken on my go-fiber backend but I can't seem to install supertokens when ...
k

keezy2147

over 2 years ago
Hey! I'm integrating supertoken on my go-fiber backend but I can't seem to install supertokens when I run go mod tidy. It always gets stuck at
go: downloading github.com/twilio/twilio-go v0.26.0
go: downloading github.com/golang/protobuf v1.3.2
go: downloading github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e
k
s
  • 2
  • 3
  • 31
here ```http://localhost:3000/auth?redirectToPath=``` I'm getting this error -> ```Unhandled Runt...
f

funk101

over 2 years ago
here
http://localhost:3000/auth?redirectToPath=
I'm getting this error ->
Unhandled Runtime Error
TypeError: style.toLowerCase is not a function
This after upgrading my supertokens-auth-react, supertokens-node, and supertokens-web-js
f
a
  • 2
  • 2
  • 31
Hi, i am using verify middleware in route and i have also my own middleware which i used to to set s...
c

cpalta8102

over 3 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
  • 31
Hello, is there some sort of hook I can use within react comps to get access to the sessions or rath...
z

zoot7045

over 1 year ago
Hello, is there some sort of hook I can use within react comps to get access to the sessions or rather to validate the AUTH status: const root = ReactDOM.createRoot( document.getElementById('root') as HTMLElement ); root.render( ); maybe like a useAuth() similar to Auth0.
z
r
  • 2
  • 4
  • 30
Hi, does supertokens support mechanism for device recognition? example use case: detect when an user...
c

czalez17

over 2 years ago
Hi, does supertokens support mechanism for device recognition? example use case: detect when an user login happens from a different device. If it does, can you please point me to documentation about it?
c
r
  • 2
  • 1
  • 30
I get the following error when i try to sign up with a user: Error: No SuperTokens core available t...
j

jacobluc

about 3 years ago
I get the following error when i try to sign up with a user: Error: No SuperTokens core available to queryError: No SuperTokens core available to query Setup: I am self hosting a core, without docker on my mac. (It should be running, i can get the hello message when visiting /hello) The connection to my postgresql is successful (the default supertokens tables have been generated)
j
r
  • 2
  • 46
  • 30
Hey guys, does anyone have any idea on how to add an e2e test using puppeteer/playwright/cypress? Wh...
s

showtim33

about 3 years ago
Hey guys, does anyone have any idea on how to add an e2e test using puppeteer/playwright/cypress? What I tried was somehow copying the cookie and setting it in the test, it worked but not for long, probably because the refresh tokens are also updated after a fixed time interval. I am using react and passwordless recipe. Any ideas/suggestions/pointers?
s
r
  • 2
  • 14
  • 30
Using emailPasswordSignUp function returns 500 Internal server error
a

atoyebs

over 3 years ago
Using emailPasswordSignUp function returns 500 Internal server error
a
r
  • 2
  • 10
  • 30
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
  • 30
Previous222324Next

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