Skip to content

Commit

Permalink
fix: self-review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Jul 7, 2024
1 parent ebba997 commit 7374dea
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion lib/build/recipe/oauth2/index.d.ts

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

4 changes: 2 additions & 2 deletions lib/build/recipe/oauth2/index.js

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

5 changes: 3 additions & 2 deletions lib/build/recipe/oauth2/recipe.js

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

2 changes: 1 addition & 1 deletion lib/build/recipe/oauth2/recipeImplementation.js

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

2 changes: 1 addition & 1 deletion lib/build/recipe/oauth2/utils.js

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

4 changes: 2 additions & 2 deletions lib/ts/recipe/oauth2/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2022, VRAI Labs and/or its affiliates. All rights reserved.
/* Copyright (c) 2024, VRAI Labs and/or its affiliates. All rights reserved.
*
* This software is licensed under the Apache License, Version 2.0 (the
* "License") as published by the Apache Software Foundation.
Expand Down Expand Up @@ -31,7 +31,7 @@ export default class RecipeWrapper {
}

/**
* Check if an email exists
* Returns information about an OAuth login in progress
*
* @param loginChallenge The login challenge from the url
*
Expand Down
5 changes: 3 additions & 2 deletions lib/ts/recipe/oauth2/recipe.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2022, VRAI Labs and/or its affiliates. All rights reserved.
/* Copyright (c) 2024, VRAI Labs and/or its affiliates. All rights reserved.
*
* This software is licensed under the Apache License, Version 2.0 (the
* "License") as published by the Apache Software Foundation.
Expand Down Expand Up @@ -57,7 +57,8 @@ export default class Recipe extends AuthRecipe<PreAndPostAPIHookAction, Normalis

static getInstanceOrThrow(): Recipe {
if (Recipe.instance === undefined) {
let error = "No instance of Multitenancy found. Ensure that 'SuperTokens.init' method has been called.";
let error =
"No instance of OAuth2 found. Ensure that the 'OAuth2.init' method is called within the 'SuperTokens.init' recipeList.";
error = checkForSSRErrorAndAppendIfNeeded(error);

throw Error(error);
Expand Down
2 changes: 1 addition & 1 deletion lib/ts/recipe/oauth2/recipeImplementation.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2022, VRAI Labs and/or its affiliates. All rights reserved.
/* Copyright (c) 2024, VRAI Labs and/or its affiliates. All rights reserved.
*
* This software is licensed under the Apache License, Version 2.0 (the
* "License") as published by the Apache Software Foundation.
Expand Down
2 changes: 1 addition & 1 deletion lib/ts/recipe/oauth2/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2022, VRAI Labs and/or its affiliates. All rights reserved.
/* Copyright (c) 2024, VRAI Labs and/or its affiliates. All rights reserved.
*
* This software is licensed under the Apache License, Version 2.0 (the
* "License") as published by the Apache Software Foundation.
Expand Down
2 changes: 1 addition & 1 deletion lib/ts/recipe/oauth2/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2022, VRAI Labs and/or its affiliates. All rights reserved.
/* Copyright (c) 2024, VRAI Labs and/or its affiliates. All rights reserved.
*
* This software is licensed under the Apache License, Version 2.0 (the
* "License") as published by the Apache Software Foundation.
Expand Down
2 changes: 1 addition & 1 deletion recipe/oauth2/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2022, VRAI Labs and/or its affiliates. All rights reserved.
/* Copyright (c) 2024, VRAI Labs and/or its affiliates. All rights reserved.
*
* This software is licensed under the Apache License, Version 2.0 (the
* "License") as published by the Apache Software Foundation.
Expand Down
2 changes: 1 addition & 1 deletion recipe/oauth2/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2022, VRAI Labs and/or its affiliates. All rights reserved.
/* Copyright (c) 2024, VRAI Labs and/or its affiliates. All rights reserved.
*
* This software is licensed under the Apache License, Version 2.0 (the
* "License") as published by the Apache Software Foundation.
Expand Down
2 changes: 1 addition & 1 deletion recipe/oauth2/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2022, VRAI Labs and/or its affiliates. All rights reserved.
/* Copyright (c) 2024, VRAI Labs and/or its affiliates. All rights reserved.
*
* This software is licensed under the Apache License, Version 2.0 (the
* "License") as published by the Apache Software Foundation.
Expand Down
2 changes: 1 addition & 1 deletion recipe/oauth2/types/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (c) 2022, VRAI Labs and/or its affiliates. All rights reserved.
/* Copyright (c) 2024, VRAI Labs and/or its affiliates. All rights reserved.
*
* This software is licensed under the Apache License, Version 2.0 (the
* "License") as published by the Apache Software Foundation.
Expand Down

0 comments on commit 7374dea

Please sign in to comment.