···33import gleam/dynamic/decode
4455pub type Session {
66- /// User is sucessfully authenticated
66+ /// ๏ User is sucessfully authenticated and is allowed to
77+ /// access protected routes.
78 Authenticated(token.Token)
88- /// User is waiting for the Server to validate their credentials
99+ /// ๏ User is waiting for the Server to validate their credentials
1010+ /// and will be redirected on success / failure.
911 Pending(on_success: route.Route, on_error: route.Route)
10121111- /// User is not logged out
1313+ /// ๏ User is not authenticated and can only access public routes
1214 Guest
1315}
1416···2830 }
29313032 "guest" -> decode.success(Guest)
3131- _ -> decode.failure(Guest, "session")
3333+ _ -> decode.failure(Guest, "Session")
3234 }
3335}