Skip to content

Why does sessionCsrfToken focus on a Maybe? #1

@fisx

Description

@fisx

We have this:

class HasSessionCsrfToken a where
  sessionCsrfToken :: Lens' a (Maybe CsrfToken)

What's the intuition of the Nothing case? Shouldn't that be an error that is thrown inside the middleware, so that the application logic can rely on the token to always be present?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions