Skip to main content
Version: 7.2.X

init

JWT.init({
jwtValiditySeconds?: number,
override?: {
functions?: function,
apis?: function,
}
})

Parameters#

jwtValiditySeconds (Optional)#

  • The validity in seconds to use when creating JWTs.
  • Default: If this option is not provided and no validity is provided to the createJWT function, the validity used is 3153600000 (100 years in seconds)

override (Optional)#

  • Use this feature to override how this recipe behaves.
  • Default: undefined
Which frontend SDK do you use?
supertokens-web-js / mobile
supertokens-auth-react