Skip to content

Commit

Permalink
Fix the rest of the code type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
bcbogdan committed Oct 25, 2024
1 parent 5aba97b commit 349af24
Show file tree
Hide file tree
Showing 15 changed files with 160 additions and 29 deletions.
2 changes: 1 addition & 1 deletion v2/attackprotectionsuite/backend-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ SuperTokens.init({
return originalImplementation.generatePasswordResetTokenPOST!(input);
},
passwordResetPOST: async function (input) {
let password = input.formFields.filter((f) => f.id === "password")[0].value;
let password = input.formFields.filter((f) => f.id === "password")[0].value as string;
let securityCheckResponse = await handleSecurityChecks({ password });
if (securityCheckResponse !== undefined) {
return securityCheckResponse;
Expand Down
9 changes: 9 additions & 0 deletions v2/community/reusableMD/oauth-paid-banner.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import CustomAdmonition from "/src/components/customAdmonition"

<CustomAdmonition type="paid-feature">

This is a paid feature.

You can click on the **Enable Paid Features** button on [our dashboard](https://supertokens.com/dashboard-saas), and follow the steps from there on. Once enabled, this feature is free on the provided development environment.

</CustomAdmonition>
4 changes: 2 additions & 2 deletions v2/microservice_auth/client-credentials.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import OAuthBackendTabs from "/src/components/tabs/OAuthBackendTabs"
import CoreInjector from "/src/components/coreInjector"
import AppInfoForm from "/src/components/appInfoForm"
import TabItem from '@theme/TabItem';
import MFAPaidBanner from '../community/reusableMD/mfa/MFAPaidBanner.mdx'
import OAuthPaidBanner from '../community/reusableMD/oauth-paid-banner.mdx'

<MFAPaidBanner />
<OAuthPaidBanner />


# Client Credentials Authentication
Expand Down
2 changes: 1 addition & 1 deletion v2/src/plugins/codeTypeChecking/jsEnv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"socket.io": "^4.6.1",
"socketio": "^1.0.0",
"supertokens-auth-react": "github:supertokens/supertokens-auth-react#0.48",
"supertokens-auth-react-script": "github:supertokens/supertokens-auth-react#0.46",
"supertokens-auth-react-script": "github:supertokens/supertokens-auth-react#0.48",
"supertokens-node": "github:supertokens/supertokens-node#feat/add_clientId_secret_and_refreshTokenRotation_settings",
"supertokens-node7": "npm:[email protected]",
"supertokens-react-native": "^5.0.0",
Expand Down
61 changes: 61 additions & 0 deletions v2/static/img/guides/oauth-logo-orange.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 349af24

Please sign in to comment.