Update 03-pages.md

This commit is contained in:
Adam Kirk 2021-05-05 15:36:32 -06:00 committed by GitHub
parent 464d5d215b
commit b98a2c72ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -243,11 +243,12 @@ Page.sandbox
}
-- protected
Page.protected.sandbox
{ init : User -> Model
, update : User -> Msg -> Model -> Model
, view : User -> Model -> View Msg
}
Page.protected.sandbox :
User ->
{ init : Model
, update : Msg -> Model -> Model
, view : Model -> View Msg
}
```
When you are ready for user authentication, you can learn more about using `Page.protected` in the [authentication guide](/examples/04-authentication).