-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Emailpassword accountlinking (#501)
* recipe interface changes for account linking * account linking implementation * user context update * code udpate * types update * Update lib/ts/recipe/accountlinking/types.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * Update lib/ts/recipe/accountlinking/types.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * Update lib/ts/recipe/accountlinking/types.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * return type update * index file updated * merge with account-linking interface * Update lib/ts/recipe/accountlinking/recipeImplementation.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * code review changes * Update lib/ts/recipe/accountlinking/recipeImplementation.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * Update lib/ts/recipe/accountlinking/recipe.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * Update lib/ts/recipe/accountlinking/recipe.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * code review changes * code review changes * code review changes * code review changes * review changes * sign-up post login updated * sign-up post login updated * sign-up API implementation update * import update * function import update * changes in signup recipeimplementation * recipeImplementation types update * merge with 13.0 * merge with account-linking implementation * recipe implementation update * account linking claim * changes to dashboard recipe types * removes unnecessary functions exposed from account linking recipe * adds a precautionary check * small change * Update lib/ts/types.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * Update lib/ts/index.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * Update lib/ts/supertokens.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * Update lib/ts/recipe/dashboard/api/usersGet.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * Update lib/ts/index.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * Update lib/ts/index.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * Update lib/ts/index.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * Update lib/ts/recipe/accountlinking/types.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * Update lib/ts/recipe/accountlinking/recipe.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * Update lib/ts/recipe/accountlinking/recipe.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * Update lib/ts/recipe/accountlinking/recipe.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * Update lib/ts/recipe/accountlinking/types.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * Update lib/ts/recipe/accountlinking/recipe.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * code review changes * mark email as verify if it is already verified in either primary user or the current recipe user * fixes and refactors * account linking: fixes bugs and refactors (#498) * fixes bugs and refactors * small refactors and fixes * small refactor * small type changes * review changes * removes redundant check * account linking: removes ANOTHER from canCreatePrimaryUserId status return type (#500) * removes ANOTHER from canCreatePrimaryUserId status return type * small change related to status change in primary user id creation * change to canLinkAccounts * Update lib/ts/recipe/accountlinking/recipeImplementation.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * Update lib/ts/recipe/accountlinking/types.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * Update lib/ts/recipe/accountlinking/recipeImplementation.ts Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * code review changes * review changes * createdNewUser changes * adds comments * fixes * review changes (#511) * more changes * small changes * small changes * small changes * Update lib/ts/recipe/emailpassword/api/implementation.ts * more fixes - ts still not compiling * more fixes - ts still not compiling * more fixes - ts still not compiling * more fixes - ts still not compiling * more fixes - ts still not compiling * more fixes - ts still not compiling * more fixes - ts still not compiling * more fixes - ts still not compiling * more fixes - ts still not compiling * more fixes - ts still not compiling * more fixes - ts still not compiling * more fixes - ts still not compiling * more fixes - ts still not compiling * more fixes - ts still not compiling * more fixes - ts still not compiling * more fixes - ts still not compiling * fixes all ts issues --------- Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com>
- Loading branch information
1 parent
35c1e93
commit 8b493a7
Showing
66 changed files
with
2,221 additions
and
1,438 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// @ts-nocheck | ||
import { PrimitiveClaim } from "../session/claims"; | ||
/** | ||
* We include "Class" in the class name, because it makes it easier to import the right thing (the instance) instead of this. | ||
* */ | ||
export declare class AccountLinkingClaimClass extends PrimitiveClaim<string> { | ||
constructor(); | ||
} | ||
export declare const AccountLinkingClaim: AccountLinkingClaimClass; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AccountLinkingClaim = exports.AccountLinkingClaimClass = void 0; | ||
const claims_1 = require("../session/claims"); | ||
/** | ||
* We include "Class" in the class name, because it makes it easier to import the right thing (the instance) instead of this. | ||
* */ | ||
class AccountLinkingClaimClass extends claims_1.PrimitiveClaim { | ||
constructor() { | ||
super({ | ||
key: "st-linking", | ||
fetchValue(_, __, ___) { | ||
return undefined; | ||
}, | ||
}); | ||
} | ||
} | ||
exports.AccountLinkingClaimClass = AccountLinkingClaimClass; | ||
exports.AccountLinkingClaim = new AccountLinkingClaimClass(); |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.