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
support-questions
  • v

    Vetro

    12/25/2021, 2:47 PM
    Excellent, thank you 😄 You can share it on docs if you want, maybe it would help someone 🙂
  • r

    rp

    12/25/2021, 2:47 PM
    sure! thank you.. will do
  • r

    relentless

    12/29/2021, 2:35 AM
    hey @User, is there a method in the js SDK to refresh the expired access tokens.
  • r

    rp

    12/29/2021, 2:37 AM
    Yes. It’s called attemptRefreshingSession
  • r

    rp

    12/29/2021, 2:37 AM
    https://supertokens.io/docs/website/modules.html#attemptRefreshingSession
  • r

    relentless

    12/29/2021, 2:44 AM
    Hey, thanks a ton but is there one for the backend sdk
  • r

    rp

    12/29/2021, 2:50 AM
    Not for the backend SDK. Since session refreshing is only possible via the frontend SDK. Since the refresh token is only stored on the frontend
  • r

    relentless

    12/29/2021, 3:35 AM
    thank you @User
  • r

    relentless

    12/30/2021, 5:25 AM
    Hey @User , sorry for interrupting again but is there any way to get all the user details returned by a third-party auth provider such as Google (such as their profile picture's URL).
  • r

    rp

    12/30/2021, 5:48 AM
    Yea. We give the access token which you can use to get info
  • r

    rp

    12/30/2021, 5:50 AM
    https://supertokens.io/docs/thirdpartyemailpassword/post-login/getting-provider-access-token
  • r

    relentless

    12/30/2021, 6:32 AM
    ok thanks
  • r

    relentless

    12/30/2021, 6:33 AM
    i am not able to decode the access token
  • r

    relentless

    12/30/2021, 6:34 AM
    This is the access token "ya29.a0ARrdaM-DQ6myC4lYJf2qUDLsH-nNgnRfPsj-Czq0OpPWBdHfD_KvsnBr61aA0Ax8_q68-U2-_nGPw8puoBCKLM5FCPhMXKd5j08F4p25V0urXVRSqS-XdhYuC_OZSsxduDG0l5-0yZqCAOM84nGPAvG2SPD8"
  • r

    rp

    12/30/2021, 6:34 AM
    U shouldn’t treat the access token as a JWT.
  • r

    rp

    12/30/2021, 6:34 AM
    There is a section about enabling JWT in our docs (in common customisation)
  • r

    rp

    12/30/2021, 6:35 AM
    But if you can avoid using JWTs, that would be ideal. Since it’s not the best from a security point of view.
  • r

    relentless

    12/30/2021, 6:35 AM
    i agree, but is there any other way to decode the access token
  • r

    rp

    12/30/2021, 6:35 AM
    U should use our verifySession function
  • r

    relentless

    12/30/2021, 8:10 AM
    ok thanks
  • g

    gaurang7

    12/30/2021, 11:35 AM
    In express server can I import the modules like esm other than cjs? import {} from "supertoken" other than const xyz = require("supertoken")
  • u

    user

    12/30/2021, 11:36 AM
    You mean like typescript support?
  • g

    gaurang7

    12/30/2021, 11:43 AM
    let Session = require("supertokens-node/recipe/session") works fine. Altough what if I have a server.mjs to bootstrap my express server, can I import like this import Session from "supertoken-node/recipe/session"
  • v

    vimal

    12/30/2021, 11:47 AM
    Hello guys. any one have Embed Sign In / Up form in a page sample code? i can't find it on supertokens github repo
  • r

    rp

    12/30/2021, 11:49 AM
    There isn’t an example for this
  • r

    rp

    12/30/2021, 11:49 AM
    But we have docs for it
  • r

    rp

    12/30/2021, 11:49 AM
    In the common customisation sections.
  • v

    vimal

    12/30/2021, 11:50 AM
    okay i will check it. it should be very helpful if you have an example code.
  • r

    rp

    12/30/2021, 11:54 AM
    @gaurang7 yea you can import that way. It should work.
  • g

    gaurang7

    12/30/2021, 12:41 PM
    yeah, tried it. It works. 😀
Powered by Linen
Title
g

gaurang7

12/30/2021, 12:41 PM
yeah, tried it. It works. 😀
View count: 2