ctron / yew-oauth2

General purpose OAuth2 component for Yew
Apache License 2.0
44 stars 17 forks source link

Provide a way to redirect when not logged in #6

Closed ctron closed 1 year ago

ctron commented 1 year ago

Currently there is a Redirect component, which redirects when the session becomes unauthenticated.

Maybe the name is bad, but even I just thought it would work differently.

That functionality is still relevant, but there should also be some functionality, which either renders its content (children) or starts a new login if it would render its children.

An alternative solution would be, to add a new property to the Authenticated component, which would mean "login otherwise".