Skip to main content
Version: 7.2.X

getUserById(userId)

Parameters#

  • userId
    • type: string

Returns#

  • Promise<User> on submitting a valid user ID.
  • Promise<undefined> in case the userId doesn't exist.
Which frontend SDK do you use?
supertokens-web-js / mobile
supertokens-auth-react