supertokens / supertokens-core

Open source alternative to Auth0 / Firebase Auth / AWS Cognito
https://supertokens.com
Other
13.19k stars 523 forks source link

[RELEASE]: Multi tenancy #731

Open rishabhpoddar opened 1 year ago

rishabhpoddar commented 1 year ago

đź“… Checklist

🔶 Staging

Dev Tag

Others

đź“š Documentation (test site)

🔥 Production

đź’» NPM and core release

đź“š Documentation

rishabhpoddar commented 1 year ago

changes to docs / auth react flows

docs: https://test.supertokens.com/docs/thirdpartyemailpassword/common-customizations/multi-tenancy/common-domain-login (pre built ui)

https://test.supertokens.com/docs/thirdpartyemailpassword/common-customizations/multi-tenancy/sub-domain-login (pre build ui):

In both the UX flows:

auth-react SDK:

TODO later

docs: https://test.supertokens.com/docs/thirdpartyemailpassword/common-customizations/multi-tenancy/common-domain-login (pre built ui)

auth-rect SDK:

rishabhpoddar commented 1 year ago

Things to do after pushing to prod:

nkshah2 commented 1 year ago

Golang SDK feedback:

From a user's point of view this typing is very ugly

UserInfoMap: tpmodels.TypeUserInfoMap{
                                FromUserInfoAPI: struct{UserId string "json:\"userId,omitempty\""; Email string "json:\"email,omitempty\""; EmailVerified string "json:\"emailVerified,omitempty\""}{
                                    UserId:        "id",
                                    Email:         "email",
                                    EmailVerified: "email_verified",
                                },
                            },

We should declare another type which is then used for both FromUserInfoAPI and FromIdTokenPayload

Updated return type of GetEmailForUserId in the EmailVerification recipe config. It should now return OK, EmailDoesNotExistError or UnknownUserIDError as response.

Should be updated to rename UnknownUserIDError to UnknownUserIdError