I
I
Ilya2020-01-29 09:12:34
Mobile development
Ilya, 2020-01-29 09:12:34

How to check user authorization in an application on Flutter?

There is an application on flutter. There is a separate screen with an authorization form. From there, I retrieve the token and store it locally on the device. Tell me how best to check the relevance of the token on each screen?

For now, I'm thinking of using a provider and calling the token-checking method on each screen.
Maybe there is a better solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
KnightForce, 2020-04-24
@Raz-Mik

Well, you can use a singleton or a static method in the responsible class / function and call it to check.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question