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.

Store a global list of scopes that can be enabled per client

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#

We want to add a list of enabled scopes to each client.

Considered Options#

  • Directly store the list of enabled scopes in each client
  • Store a global claim list and reference it in clients

Decision Outcome#

Chosen option: Store a global claim list and reference it in clients

  • Prevents typos

Pros and Cons of the Options#

Directly store the list of enabled scopes in each client#

  • Creating and enabling scopes is a single step
  • Store a global claim list and reference it in clients#

  • Prevents typos when creating multiple clients