-
-
Save marcossevilla/67bb3248eea8afb74ca92c443665c176 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final tokenProvider = StateProvider<String>((_) => ''); | |
final authenticateUser = FutureProvider<void>( | |
(ref) async { | |
final authResult = await ref.read(authProvider).login(); | |
ref.read(tokenProvider).state = authResult.token; | |
}, | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment