Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
infomiho committed Feb 23, 2024
1 parent c4f1ae4 commit 49fe129
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions web/docs/auth/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ If you set it to `true`, only authenticated users can access the page. Unauthent

```wasp title="main.wasp"
page MainPage {
component: import Main from "@src/pages/Main.jsx",
component: import Main from "@src/pages/Main",
authRequired: true
}
```
Expand All @@ -106,7 +106,7 @@ page MainPage {

```wasp title="main.wasp"
page MainPage {
component: import Main from "@src/pages/Main.tsx",
component: import Main from "@src/pages/Main",
authRequired: true
}
```
Expand Down Expand Up @@ -197,7 +197,7 @@ If the page's declaration sets `authRequired` to `true`, the page's React compon
// ...
page AccountPage {
component: import Account from "@src/pages/Account.jsx",
component: import Account from "@src/pages/Account",
authRequired: true
}
```
Expand Down Expand Up @@ -225,7 +225,7 @@ export default AccountPage
// ...
page AccountPage {
component: import Account from "@src/pages/Account.tsx",
component: import Account from "@src/pages/Account",
authRequired: true
}
```
Expand Down Expand Up @@ -411,10 +411,10 @@ action updatePassword {

```js title="src/auth.js"
import {
createProviderId,
findAuthIdentity,
updateAuthIdentityProviderData,
deserializeAndSanitizeProviderData,
createProviderId,
findAuthIdentity,
updateAuthIdentityProviderData,
deserializeAndSanitizeProviderData,
} from 'wasp/server/auth';
export const updatePassword = async (args, context) => {
Expand All @@ -438,10 +438,10 @@ export const updatePassword = async (args, context) => {

```ts title="src/auth.ts"
import {
createProviderId,
findAuthIdentity,
updateAuthIdentityProviderData,
deserializeAndSanitizeProviderData,
createProviderId,
findAuthIdentity,
updateAuthIdentityProviderData,
deserializeAndSanitizeProviderData,
} from 'wasp/server/auth';
import { type UpdatePassword } from 'wasp/server/operations'
Expand Down Expand Up @@ -574,7 +574,7 @@ app crudTesting {
userEntity: User,
methods: {
usernameAndPassword: {
userSignupFields: import { userSignupFields } from "@src/auth/signup.js",
userSignupFields: import { userSignupFields } from "@src/auth/signup",
},
},
onAuthFailedRedirectTo: "/login",
Expand Down Expand Up @@ -976,7 +976,7 @@ app crudTesting {
methods: {
usernameAndPassword: {
// highlight-next-line
userSignupFields: import { userSignupFields } from "@src/auth/signup.js",
userSignupFields: import { userSignupFields } from "@src/auth/signup",
},
},
onAuthFailedRedirectTo: "/login",
Expand Down Expand Up @@ -1014,7 +1014,7 @@ app crudTesting {
methods: {
usernameAndPassword: {
// highlight-next-line
userSignupFields: import { userSignupFields } from "@src/auth/signup.js",
userSignupFields: import { userSignupFields } from "@src/auth/signup",
},
},
onAuthFailedRedirectTo: "/login",
Expand Down

0 comments on commit 49fe129

Please sign in to comment.