Skip to content

[Formulus] Auto-login after auth. token timeouts #143

@r0ssing

Description

@r0ssing

Component

  • formulus (React Native mobile app)
  • formulus-formplayer (React web app)
  • synkronus (Go backend server)
  • synkronus-cli (Command-line utility)
  • Documentation
  • Other (please specify)

Feature Description

Auto-login after auth. token timeouts - when coming back to Formulus and going directly to "sync", after the auth. token has expired, causes an error 401. The user will then have to go to settings and click "Login" (the server/username/password are correctly stored) and then go back and try to sync again.
If Formulus could automatically re-login that would be a great improvement in UX.

Proposed Solution

We should implement a handler that catches error 401 when sync'ing (both data and app-bundle) - and tries to login automatically using the stored credentials

Image

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions