demokratie-live / democracy-client

DEMOCRACY App Client
https://www.democracy-deutschland.de/#!prototyp
Apache License 2.0
138 stars 28 forks source link

Its not possible to vote when on NoAuth Error #344

Closed ulfgebhardt closed 6 years ago

ulfgebhardt commented 6 years ago

The token for authentication is not regenerated in a Testsetup.

Faulty Behaviour:

Preconditions:

This results in a NoAuth Error on the Server. image The Client does not regenerate the token.

Expected Behaviour:

The NoAuth Error needs to be eliminated - client and server have to be able to exchange a new token - whichever side lost it.

In general its advised that the server handles expiretimes etc. This must be enfored

Steps to reproduce:

App-Version: [0.7.7]

ulfgebhardt commented 6 years ago

This is apparently partly solved by https://github.com/demokratie-live/democracy-client/issues/281

The second Issue remains: The Server should control the validity of the jwt-token and let it expire regularly