mirror of
https://github.com/ryan-haskell/elm-spa.git
synced 2024-11-22 11:31:58 +03:00
commit
4f23cc588d
@ -243,11 +243,12 @@ Page.sandbox
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- protected
|
-- protected
|
||||||
Page.protected.sandbox
|
Page.protected.sandbox :
|
||||||
{ init : User -> Model
|
User ->
|
||||||
, update : User -> Msg -> Model -> Model
|
{ init : Model
|
||||||
, view : User -> Model -> View Msg
|
, 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).
|
When you are ready for user authentication, you can learn more about using `Page.protected` in the [authentication guide](/examples/04-authentication).
|
||||||
|
Loading…
Reference in New Issue
Block a user