Skip to main content
important

This is a contributors guide and NOT a user guide. Please visit these docs if you are using or evaluating SuperTokens.

Token lifetimes should default to values set in the core config

Status

This is just a proposal so far, it hasn't been accepted and needs further discussion.

Status:
proposed
Deciders:
rishabhpoddar, porcellus
Proposed by:
porcellus
Created:
2023-05-11

Context and Problem Statement#

Token lifetimes can be controlled in multiple way.

Considered Options#

  • Always set by the backend
  • Overrideable by backend - defaulting to core config setting

Decision Outcome#

Chosen option: Overrideable by backend - defaulting to core config setting

  • Customizable
  • More convenient when creating M2M tokens in PostMan

Pros and Cons of the Options#

Always set by the backend#

  • Customizable
  • Has to be set in each request even when manually creating token
  • Overrideable by backend - defaulting to core config setting#

  • Customizable
  • More convenient when creating M2M tokens in PostMan
  • Requires new config options in Core