forXifLess / LinkNavigator

🌊 Easy & Powerful navigation library in SwiftUI
Other
382 stars 27 forks source link

How should we handle the case where the token has expired and needs to be redirected to the login view? #20

Closed weisttl closed 1 year ago

interactord commented 1 year ago

@weisttl

My idea suggests two methods.

  1. Use the replace function to delete all page stacks and add a login page.

  2. Use sheet to call the login page.

interactord commented 1 year ago

If you could provide a simple code for the situation where the access token expires, I will let you know how to insert the code.