Skip to content

Commit

Permalink
Merge pull request #108 from supertokens/fix/update_totp_types
Browse files Browse the repository at this point in the history
fix: update totp types to latest node
  • Loading branch information
rishabhpoddar authored Mar 12, 2024
2 parents d093c79 + 43e2dc4 commit e90de06
Show file tree
Hide file tree
Showing 19 changed files with 14 additions and 24 deletions.
2 changes: 1 addition & 1 deletion bundle/dateprovider.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bundle/emailpassword.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/emailverification.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/multifactorauth.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/multitenancy.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/passwordless.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/session.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/supertokens.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/thirdparty.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/thirdpartyemailpassword.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/thirdpartypasswordless.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/totp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/userroles.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/website.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions lib/build/recipe/totp/index.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions lib/build/recipe/totp/types.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions lib/ts/recipe/totp/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ export default class RecipeWrapper {
static createDevice(input?: { deviceName?: string; options?: RecipeFunctionOptions; userContext?: any }): Promise<
| {
status: "OK";
issuerName: string;
deviceName: string;
secret: string;
userIdentifier?: string;
qrCodeString: string;
fetchResponse: Response;
}
Expand Down
2 changes: 0 additions & 2 deletions lib/ts/recipe/totp/recipeImplementation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ export default function getRecipeImplementation(
const { jsonBody, fetchResponse } = await querier.post<
| {
status: "OK";
issuerName: string;
deviceName: string;
secret: string;
userIdentifier?: string;
qrCodeString: string;
}
| { status: "DEVICE_ALREADY_EXISTS_ERROR" }
Expand Down
2 changes: 0 additions & 2 deletions lib/ts/recipe/totp/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,8 @@ export type RecipeInterface = {
createDevice: (input: { deviceName?: string; options?: RecipeFunctionOptions; userContext: any }) => Promise<
| {
status: "OK";
issuerName: string;
deviceName: string;
secret: string;
userIdentifier?: string;
qrCodeString: string;

fetchResponse: Response;
Expand Down

0 comments on commit e90de06

Please sign in to comment.