Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fdi-version header to requests #2

Open
2 of 11 tasks
rishabhpoddar opened this issue Oct 23, 2020 · 0 comments
Open
2 of 11 tasks

Add fdi-version header to requests #2

rishabhpoddar opened this issue Oct 23, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@rishabhpoddar
Copy link
Member

rishabhpoddar commented Oct 23, 2020

Frontend SDKs must

  • API requests have a fdi-version header for versioning purposes. The format is a X.Y,X1.Y1... for example 1.2,3.4,1.1. In the driver, we must take care to remove spaces and then get the latest common version between the two SDKs (like we do for CDI)

Drivers must:

  • Extracting the latest, common (between frontend and backend SDK) FDI version from the request and passing that to the module. If no FDI is present, then assume the latest FDI supported by the backend SDK. If FDI is present, but none matching, then throw an appropriate error.
  • This also needs to be exposed in Access-Control-Allow-Headers
  • If it is missing, we assume the latest version supported by the driver.

  • supertokens-website
  • supertokens-auth-react
  • ios
  • android
  • react native
  • nodejs
  • javalin
  • flask
  • fastapi
  • golang
  • laravel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant