Skip to content

Default implementation should include login example #3

@zelenij

Description

@zelenij

Almost any app would want to use authentication. While the server side implementation in the template can be just a plug:

let login username password =
    if username = "jonh" && password = "123" then
        Ok username
     else
        Error "go away"

the whole plumbing of Fable/Feliz communicating with the server and updating global state (for logged in status, for example) is not very trivial for a beginner and would deserve a simple example. I could only make it work with Elmish, not with the provided sample of useDeferredCallback

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions