Add SDK compatibility endpoints#40
Open
bcbogdan wants to merge 93 commits into
Open
Conversation
TypeScript 6.0.3 was hoisted to root node_modules (pulled in by @microsoft/api-extractor@5.9.3). tsup's DTS build always injects baseUrl: "." internally, which TS6 now flags as a fatal deprecation error. Adding ignoreDeprecations: "6.0" to the shared base tsconfig suppresses the warning without changing any runtime behavior.
|
feat(rownd-nodejs): provision multi-tenancy and OIDC clients separately
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Rownd compatibility endpoints and migration tooling needed to run Rownd-backed apps on SuperTokens while preserving Rownd API behavior during migration.
Compatibility Endpoints
GET /plugin/rownd/app-config: returns Rownd-compatible app, branding, schema, auth method, legal, and profile configuration for the hub/client.POST /plugin/rownd/guest: creates a guest or anonymous SuperTokens user and starts a session with Rownd-compatible claims.POST /plugin/rownd/migrate: validates a Rownd token, imports the Rownd user into SuperTokens when needed, and creates a SuperTokens session.GET /plugin/rownd/user: returns a Rownd-compatible user payload derived from SuperTokens login methods plus migrated Rownd profile data.PUT /plugin/rownd/user: updates writable profile data and defers email changes through SuperTokens email verification.DELETE /plugin/rownd/user: deletes the current authenticated user.GET /plugin/rownd/user/meta: returns user metadata while hiding internal migration and verification state.PUT /plugin/rownd/user/meta: updates user metadata while rejecting internal Rownd compatibility fields.GET /plugin/rownd/user/field: returns a single synthesized user data field, including auth-derived identity fields.PUT /plugin/rownd/user/field: updates a single writable profile field, with email updates routed through verification.Recipe Overrides
passwordless.emailDelivery: rewrites passwordless magic-link URLs to the Rownd-compatible/account/loginpath.emailverification.emailDelivery: rewrites email verification links to the Rownd-compatible/account/verify-emailpath.emailverification.verifyEmailPOST: completes pending Rownd-compatible email updates after SuperTokens verifies the email.accountlinking.shouldDoAutomaticAccountLinking: allows guest/anonymous upgrades and matching real-auth identity linking while delegating unsafe cases to app policy.session.createNewSession: injects Rownd-compatible session claims such asauth_level,is_anonymous, andanonymous_id.