elm-pages authentication examples and approaches (Oauth, magic link, etc.) #481
Replies: 1 comment
-
The full-stack todo application in the
It uses cookies to manage sessions. This elm-pages/examples/todos/src/MySession.elm Lines 55 to 75 in 9b150cb This example app models auth where a user can have multiple login session. If you were to delete all login sessions associated with a given user, that would effectively "log out all devices". Or you could log out a single device by deleting one specific session entry. Then todo items are looked up through the user via a session ID:
You can see a live demo at https://elm-pages-todos.netlify.app/. |
Beta Was this translation helpful? Give feedback.
-
Let's share conceptual overviews, resources, and code snippets for authentication in elm-pages applications in this thread. Since we can do full-stack apps with elm-pages, there are many different strategies we can use, so it's great to see what the community comes up with. Please share if you have anything to add!
Beta Was this translation helpful? Give feedback.
All reactions