https://supertokens.com/ logo
Docs
Join the conversationJoin Discord
Channels
community
contributing
general
github-activity
info
introductions
new-releases
random
security
support-questions
welcome-0xdelusion
welcome-aj-ya
welcome-aleksandrc
welcome-alpinjs
welcome-amberlamps1
welcome-andrew-rodriguez
welcome-ankit-choudhary
welcome-anthony-stod-custodio
welcome-call-in
welcome-chwalbox
welcome-claybiokiller
welcome-co7e
welcome-cosmoecwsa
welcome-devdag
welcome-dinso
welcome-drebotelho
welcome-elio
welcome-ernest
welcome-foxbarrington
welcome-fromscratch
welcome-galto4ir
welcome-goetzum
welcome-hay-kot
welcome-himanshu-kukreja
welcome-hossambarakat
welcome-ichikawakazuto
welcome-jahir9991
welcome-jamesl
welcome-jerry123424
welcome-john-oliver
welcome-jonas-alexanderson
welcome-jxyz
welcome-kelvinwop
welcome-kraz
welcome-lancekey
welcome-leoo
welcome-lukeacollins
welcome-m-j-mon
welcome-malik-khoja
welcome-marco
welcome-mardadi
welcome-meshguy
welcome-metamorph
welcome-mike-tectu
welcome-mirzok
welcome-mozomig
welcome-naberyou66_
welcome-nacer
welcome-namratha
welcome-naveenkumar
welcome-nightlight
welcome-nischith
welcome-notankit
welcome-olawumi
welcome-pavan-kumar-reddy-n
welcome-pineappaul
welcome-poothebear
welcome-rick
welcome-samuel-qosenergy
welcome-samuelstroschein
welcome-shubhamgoel23
welcome-shubhamkaushal
welcome-sidebar
welcome-surajsli
welcome-suyash_
welcome-syntaxerror
welcome-tauno
welcome-tauno
welcome-tawnoz
welcome-teclali
welcome-tls
welcome-turbosepp
welcome-vikram_shadow
welcome-yann
Powered by Linen
general
  • r

    rp

    11/05/2021, 3:35 PM
    Check this out https://supertokens.io/docs/emailpassword/nextjs/about
  • r

    rp

    11/05/2021, 3:35 PM
    This would give you email password login + sessions with SSR + all the UI
  • t

    thanos-minion

    11/05/2021, 3:35 PM
    I will give it a try ๐Ÿ™‚
  • t

    thanos-minion

    11/05/2021, 3:36 PM
    Thank you @User for quick TAT ๐Ÿ˜€
  • r

    rp

    11/05/2021, 3:36 PM
    ๐Ÿ‘happy to help. ๐Ÿ™‚
  • l

    luckywolf

    11/06/2021, 10:17 AM
    For authorization https://authzed.com/blog/spicedb-is-open-source/ This is based off the Google Zanzibar paper
  • r

    rp

    11/06/2021, 10:17 AM
    Thanks @luckywolf
  • l

    luckywolf

    11/06/2021, 10:20 AM
    @User where can I find the discussion around the passwordless design. Is there a text channel for such things?
  • r

    rp

    11/06/2021, 10:23 AM
    Here are the links: - API spec from backend to core: https://github.com/supertokens/core-driver-interface/pull/27 - API Spec from frontend to core: https://github.com/supertokens/frontend-driver-interface/pull/27 - Core API logic: https://github.com/supertokens/supertokens-core/issues/322 - Db schemas: https://github.com/supertokens/supertokens-core/issues/321
  • u

    user

    11/06/2021, 12:53 PM
    thanks a lot ๐Ÿ™‚
  • d

    Deleted User

    11/08/2021, 1:34 AM
    any plans to bring supertokens to vuejs?
  • r

    rp

    11/08/2021, 3:43 AM
    @Deleted User we do plan on providing helper functions for vanillaJS (hence for vuejs). There functions will take care of a lot of logic like calling the backend APIs, handling browser state during social login etc. They should be used with your UI.
  • r

    rp

    11/08/2021, 3:44 AM
    However, we donโ€™t have plans anytime soon to provide UI for vuejs.
  • r

    rp

    11/08/2021, 4:45 AM
    We did fiddle around with making UI for vanilla JS. And we might do it. Just need to figure out how to do it in a way that makes sense. But this will only happen after we do what I said above. So at least 2-3 months down the line..
  • a

    Ankur Tyagi

    11/08/2021, 12:04 PM
    Hey! Awesome People. Iโ€™m Ankur Tyagi An enthusiastic software engineer. I develop/test web applications, mentor budding developers, and create content for the web. Looking forward to connecting with you all & discussing more about Super Tokens.
  • p

    porcellus

    11/08/2021, 12:10 PM
    Hi ๐Ÿ™‚
  • r

    rp

    11/08/2021, 1:09 PM
    Hi! ๐Ÿ‘‹
  • u

    user

    11/13/2021, 5:23 PM
    Hi folks, I'm Dean. I am a software engineering student and also have secured funding for a startup as of recently. We are building a web marketplace. Within our project, we are generally looking for solutions that have both managed solutions and open source self host equivalents for almost all dependencies. Supertokens seemed like a good choice to implement authentication without a lot of vendor lockin. I'm excited to start working with SuperTokens for authentication.
  • r

    rp

    11/13/2021, 5:31 PM
    Welcome @User ! Congrats on securing investment. We are excited to have you here. Let me know how I can help.
  • u

    user

    11/13/2021, 5:43 PM
    I have a question for anyone who might know, as I am impelmenting, I am simply replacing the very basic JWT auth from the NestJS docs. I followed the NestJS implementation guide, and I see that there is a 'GetSession' decorator. From the session, you can do a DB call on the User ID and get the rest I suppose, but you would be doing that over and over again. I am wondering if it is possible to implement the GetUser decorator like from the Passpost strategy. Specifically, a decorator that makes a DB call using Mikro-ORM. This is the passport strategy I was using: https://pastebin.com/QfFXfAHz . I guess the question becomes, how do I set the user on the request chain using this implementation like I did with the Passport Strategy? This might be something I should ask in the NestJS discord, was just wondering if someone already had a solution for this.
  • r

    rp

    11/13/2021, 5:44 PM
    @porcellus can possible help with this
  • r

    rp

    11/13/2021, 5:44 PM
    Also, session verification doesnโ€™t require a call to the db. Itโ€™s stateless with us too ๐Ÿ™‚
  • p

    porcellus

    11/13/2021, 6:03 PM
    I'll test this in a minute, but I'd try doing this in the guard. You should be able to modify the request object there which is also easy to access through a param decorator.
  • p

    porcellus

    11/13/2021, 6:22 PM
    Yeah, this seems to work: just add the DB calls into the guard after checking for the error and modify the request object. I'll add a codesnippet in a sec
  • r

    rp

    11/13/2021, 6:23 PM
    Thank u @porcellus
  • p

    porcellus

    11/13/2021, 6:27 PM
    So something like this: https://pastebin.com/nVge7CM1
  • p

    porcellus

    11/13/2021, 6:32 PM
    Also, this would be done for all requests passing through that guard, which might not be necessary. If you just want to get the data inside your controller you could just move your code into a parameter decorator, that's a bit cleaner than modifying the request obj.
  • u

    user

    11/13/2021, 11:43 PM
    @User I am looking over the solution you provided now, thank you so much for your help! I will let you know what I discover. Are you able to inject into the decorator code? For some reason I thought that wasn't possible, although now that I am thinking about it, I'm not sure why it wouldn't be possible.
  • p

    porcellus

    11/14/2021, 10:49 AM
    Well injecting into decorators doesn't work out-of-the-box AFAIK, but you could do something like this: https://stackoverflow.com/a/67455016 (the accepted answer recommends the guard + param decorator approach).
  • a

    Ankur Tyagi

    11/14/2021, 6:32 PM
    @User Welcome to Supertokens.
Powered by Linen
Title
a

Ankur Tyagi

11/14/2021, 6:32 PM
@User Welcome to Supertokens.
View count: 2