Can I use auth.loginFromUri() to bypass the Auth popup

Using safe_app_nodejs to handle login for web apps which, can I avoid having to prompt the user to re-authorise the app each time they refresh the page?

I’m wondering if I can store the URI returned by SAFE authorise() in browser storage, retrieve this on re-load of the page and pass it to auth.loginFromUri(savedUri)?

Would that work, and if not is there a way to achieve this?

That would work, the other option is ask the user to switch the pad-lock in the Authenticator. Eventually I imagine we should have “allow/deny always” to be more granular.

1 Like