Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maybe incorrect documentation in Plug.Conn's module doc section "Session vs Assigns" #1255

Closed
sesamzoo opened this issue Dec 16, 2024 · 0 comments

Comments

@sesamzoo
Copy link

Hi, maybe I don't get it but shouldn't the last sentence of the paragraph at /~https://github.com/elixir-plug/plug/blob/v1.16.1/lib/plug/conn.ex#L76C3-L80C1

A typical use case would be for an authentication plug to look up a user by id
and keep the state of the user's credentials by storing them in assigns.
Other plugs will then also have access through the assigns storage. This is
an important point because the session data disappears on the next request.

be "This is an important point because the assigns data disappears on the next request."?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant