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.

Use account linking if using ST as a third-party provider

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 will provide support for using ST as a provider in the ThirdParty (and combination) recipes. Ideally, we'd like to re-use the user id we have in the original.

Considered Options#

  • Use user id mapping
  • Use account linking

Decision Outcome#

Chosen option: Use account linking if using ST as a third-party provider

  • Doesn't require using separate apps (as in multitenancy) for the provider and the consumer.
  • This should continue to work even if the account linking feature flag is switched off - the core should not check the license key when doing account linking for this use case.

Pros and Cons of the Options#

Use user id mapping#

  • Requires using separate apps (as in multitenancy) for the provider and the consumer. (We can't map to an existing user id)
  • Use account linking if using ST as a third-party provider#

  • Fits the use-case exactly
  • Not done yet.