mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-26 02:23:21 +03:00
Merge branch 'release'
This commit is contained in:
commit
8bf411fac1
@ -55,7 +55,7 @@ To use auth hooks, you must first declare them in the Wasp file:
|
|||||||
```wasp
|
```wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
userEntity: User,
|
userEntity: User,
|
||||||
@ -77,7 +77,7 @@ app myApp {
|
|||||||
```wasp
|
```wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
userEntity: User,
|
userEntity: User,
|
||||||
@ -587,7 +587,7 @@ If you want to refresh the token periodically, use a [Wasp Job](../advanced/jobs
|
|||||||
```wasp
|
```wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
userEntity: User,
|
userEntity: User,
|
||||||
@ -609,7 +609,7 @@ app myApp {
|
|||||||
```wasp
|
```wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
userEntity: User,
|
userEntity: User,
|
||||||
|
@ -49,7 +49,7 @@ Let's start with adding the following to our `main.wasp` file:
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -83,7 +83,7 @@ app myApp {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
|
@ -43,7 +43,7 @@ Let's start by properly configuring the Auth object:
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -68,7 +68,7 @@ app myApp {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -276,7 +276,7 @@ Add `gitHub: {}` to the `auth.methods` dictionary to use it with default setting
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -296,7 +296,7 @@ app myApp {
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -374,7 +374,7 @@ For an up to date info about the data received from GitHub, please refer to the
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -421,7 +421,7 @@ export function getConfig() {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -489,7 +489,7 @@ When you receive the `user` object [on the client or the server](../overview.md#
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -513,7 +513,7 @@ app myApp {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
|
@ -43,7 +43,7 @@ Let's start by properly configuring the Auth object:
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -66,7 +66,7 @@ app myApp {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -317,7 +317,7 @@ Add `google: {}` to the `auth.methods` dictionary to use it with default setting
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -337,7 +337,7 @@ app myApp {
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -400,7 +400,7 @@ For an up to date info about the data received from Google, please refer to the
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -447,7 +447,7 @@ export function getConfig() {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -515,7 +515,7 @@ When you receive the `user` object [on the client or the server](../overview.md#
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -539,7 +539,7 @@ app myApp {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
|
@ -42,7 +42,7 @@ Let's start by properly configuring the Auth object:
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -65,7 +65,7 @@ app myApp {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -283,7 +283,7 @@ Add `keycloak: {}` to the `auth.methods` dictionary to use it with default setti
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -303,7 +303,7 @@ app myApp {
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -359,7 +359,7 @@ For up-to-date info about the data received from Keycloak, please refer to the [
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -406,7 +406,7 @@ export function getConfig() {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -474,7 +474,7 @@ When you receive the `user` object [on the client or the server](../overview.md#
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -498,7 +498,7 @@ app myApp {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
|
@ -36,7 +36,7 @@ Here's what the full setup looks like:
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -63,7 +63,7 @@ model User {
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -148,7 +148,7 @@ Declare an import under `app.auth.methods.google.userSignupFields` (the example
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -180,7 +180,7 @@ export const userSignupFields = {
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
|
@ -44,7 +44,7 @@ Let's start with adding the following to our `main.wasp` file:
|
|||||||
```wasp title="main.wasp" {11}
|
```wasp title="main.wasp" {11}
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -64,7 +64,7 @@ app myApp {
|
|||||||
```wasp title="main.wasp" {11}
|
```wasp title="main.wasp" {11}
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -623,7 +623,7 @@ When you receive the `user` object [on the client or the server](./overview.md#a
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -647,7 +647,7 @@ model User {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -678,7 +678,7 @@ model User {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -699,7 +699,7 @@ app myApp {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
|
@ -73,7 +73,7 @@ We can start by running `wasp new tasksCrudApp` and then adding the following to
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app tasksCrudApp {
|
app tasksCrudApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "Tasks Crud App",
|
title: "Tasks Crud App",
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ Let's give our app a title and let's immediately turn on the full-stack authenti
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app RecipeApp {
|
app RecipeApp {
|
||||||
title: "My Recipes",
|
title: "My Recipes",
|
||||||
wasp: { version: "^0.13.0" },
|
wasp: { version: "^0.14.0" },
|
||||||
auth: {
|
auth: {
|
||||||
methods: { usernameAndPassword: {} },
|
methods: { usernameAndPassword: {} },
|
||||||
onAuthFailedRedirectTo: "/login",
|
onAuthFailedRedirectTo: "/login",
|
||||||
|
@ -50,7 +50,7 @@ psl=}
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "MyApp",
|
title: "MyApp",
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ Each Wasp project can have only one `app` type declaration. It is used to config
|
|||||||
```wasp
|
```wasp
|
||||||
app todoApp {
|
app todoApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "ToDo App",
|
title: "ToDo App",
|
||||||
head: [
|
head: [
|
||||||
@ -27,7 +27,7 @@ You may want to change the title of your app, which appears in the browser tab,
|
|||||||
```wasp
|
```wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "BookFace"
|
title: "BookFace"
|
||||||
}
|
}
|
||||||
@ -42,7 +42,7 @@ An example of adding extra style sheets and scripts:
|
|||||||
```wasp
|
```wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
head: [ // optional
|
head: [ // optional
|
||||||
@ -58,7 +58,7 @@ app myApp {
|
|||||||
```wasp
|
```wasp
|
||||||
app todoApp {
|
app todoApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "ToDo App",
|
title: "ToDo App",
|
||||||
head: [
|
head: [
|
||||||
|
@ -194,7 +194,7 @@ Your Wasp file should now look like this:
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app TodoApp {
|
app TodoApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "TodoApp"
|
title: "TodoApp"
|
||||||
}
|
}
|
||||||
@ -211,7 +211,7 @@ page MainPage {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app TodoApp {
|
app TodoApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "TodoApp"
|
title: "TodoApp"
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ Next, tell Wasp to use full-stack [authentication](../auth/overview):
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app TodoApp {
|
app TodoApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
// highlight-start
|
// highlight-start
|
||||||
title: "TodoApp",
|
title: "TodoApp",
|
||||||
|
@ -40,7 +40,7 @@ To use auth hooks, you must first declare them in the Wasp file:
|
|||||||
```wasp
|
```wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
userEntity: User,
|
userEntity: User,
|
||||||
@ -59,7 +59,7 @@ app myApp {
|
|||||||
```wasp
|
```wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
userEntity: User,
|
userEntity: User,
|
||||||
@ -349,7 +349,7 @@ Read more about the data the `onBeforeOAuthRedirect` hook receives in the [API R
|
|||||||
```wasp
|
```wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
userEntity: User,
|
userEntity: User,
|
||||||
@ -368,7 +368,7 @@ app myApp {
|
|||||||
```wasp
|
```wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
auth: {
|
auth: {
|
||||||
userEntity: User,
|
userEntity: User,
|
||||||
|
@ -49,7 +49,7 @@ Let's start with adding the following to our `main.wasp` file:
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -83,7 +83,7 @@ app myApp {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
|
@ -43,7 +43,7 @@ Let's start by properly configuring the Auth object:
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -68,7 +68,7 @@ app myApp {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -276,7 +276,7 @@ Add `gitHub: {}` to the `auth.methods` dictionary to use it with default setting
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -296,7 +296,7 @@ app myApp {
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -374,7 +374,7 @@ For an up to date info about the data received from GitHub, please refer to the
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -421,7 +421,7 @@ export function getConfig() {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -489,7 +489,7 @@ When you receive the `user` object [on the client or the server](../overview.md#
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -513,7 +513,7 @@ app myApp {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
|
@ -43,7 +43,7 @@ Let's start by properly configuring the Auth object:
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -66,7 +66,7 @@ app myApp {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -317,7 +317,7 @@ Add `google: {}` to the `auth.methods` dictionary to use it with default setting
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -337,7 +337,7 @@ app myApp {
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -400,7 +400,7 @@ For an up to date info about the data received from Google, please refer to the
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -447,7 +447,7 @@ export function getConfig() {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -515,7 +515,7 @@ When you receive the `user` object [on the client or the server](../overview.md#
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -539,7 +539,7 @@ app myApp {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
|
@ -42,7 +42,7 @@ Let's start by properly configuring the Auth object:
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -65,7 +65,7 @@ app myApp {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -283,7 +283,7 @@ Add `keycloak: {}` to the `auth.methods` dictionary to use it with default setti
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -303,7 +303,7 @@ app myApp {
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -359,7 +359,7 @@ For up-to-date info about the data received from Keycloak, please refer to the [
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -406,7 +406,7 @@ export function getConfig() {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -474,7 +474,7 @@ When you receive the `user` object [on the client or the server](../overview.md#
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -498,7 +498,7 @@ app myApp {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
|
@ -36,7 +36,7 @@ Here's what the full setup looks like:
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -63,7 +63,7 @@ model User {
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -148,7 +148,7 @@ Declare an import under `app.auth.methods.google.userSignupFields` (the example
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -180,7 +180,7 @@ export const userSignupFields = {
|
|||||||
```wasp title=main.wasp
|
```wasp title=main.wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
|
@ -44,7 +44,7 @@ Let's start with adding the following to our `main.wasp` file:
|
|||||||
```wasp title="main.wasp" {11}
|
```wasp title="main.wasp" {11}
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -64,7 +64,7 @@ app myApp {
|
|||||||
```wasp title="main.wasp" {11}
|
```wasp title="main.wasp" {11}
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -623,7 +623,7 @@ When you receive the `user` object [on the client or the server](./overview.md#a
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -647,7 +647,7 @@ model User {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -678,7 +678,7 @@ model User {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
@ -699,7 +699,7 @@ app myApp {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
auth: {
|
auth: {
|
||||||
|
@ -73,7 +73,7 @@ We can start by running `wasp new tasksCrudApp` and then adding the following to
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app tasksCrudApp {
|
app tasksCrudApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "Tasks Crud App",
|
title: "Tasks Crud App",
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ Let's give our app a title and let's immediately turn on the full-stack authenti
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app RecipeApp {
|
app RecipeApp {
|
||||||
title: "My Recipes",
|
title: "My Recipes",
|
||||||
wasp: { version: "^0.13.0" },
|
wasp: { version: "^0.14.0" },
|
||||||
auth: {
|
auth: {
|
||||||
methods: { usernameAndPassword: {} },
|
methods: { usernameAndPassword: {} },
|
||||||
onAuthFailedRedirectTo: "/login",
|
onAuthFailedRedirectTo: "/login",
|
||||||
|
@ -50,7 +50,7 @@ psl=}
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "MyApp",
|
title: "MyApp",
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ Each Wasp project can have only one `app` type declaration. It is used to config
|
|||||||
```wasp
|
```wasp
|
||||||
app todoApp {
|
app todoApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "ToDo App",
|
title: "ToDo App",
|
||||||
head: [
|
head: [
|
||||||
@ -27,7 +27,7 @@ You may want to change the title of your app, which appears in the browser tab,
|
|||||||
```wasp
|
```wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "BookFace"
|
title: "BookFace"
|
||||||
}
|
}
|
||||||
@ -42,7 +42,7 @@ An example of adding extra style sheets and scripts:
|
|||||||
```wasp
|
```wasp
|
||||||
app myApp {
|
app myApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "My App",
|
title: "My App",
|
||||||
head: [ // optional
|
head: [ // optional
|
||||||
@ -58,7 +58,7 @@ app myApp {
|
|||||||
```wasp
|
```wasp
|
||||||
app todoApp {
|
app todoApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "ToDo App",
|
title: "ToDo App",
|
||||||
head: [
|
head: [
|
||||||
|
@ -194,7 +194,7 @@ Your Wasp file should now look like this:
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app TodoApp {
|
app TodoApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "TodoApp"
|
title: "TodoApp"
|
||||||
}
|
}
|
||||||
@ -211,7 +211,7 @@ page MainPage {
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app TodoApp {
|
app TodoApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
title: "TodoApp"
|
title: "TodoApp"
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ Next, tell Wasp to use full-stack [authentication](../auth/overview):
|
|||||||
```wasp title="main.wasp"
|
```wasp title="main.wasp"
|
||||||
app TodoApp {
|
app TodoApp {
|
||||||
wasp: {
|
wasp: {
|
||||||
version: "^0.13.0"
|
version: "^0.14.0"
|
||||||
},
|
},
|
||||||
// highlight-start
|
// highlight-start
|
||||||
title: "TodoApp",
|
title: "TodoApp",
|
||||||
|
Loading…
Reference in New Issue
Block a user