Skip to content

Commit

Permalink
fetch stored credentials before fetching events
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrir committed Oct 27, 2024
1 parent 60125c6 commit b336381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ Future main() async {

runApp(const OnlineApp());

await Authenticator.fetchStoredCredentials();

Client.getEvents(pages: [1]);
Client.getArticlesOnPage(1);
Client.getAllGroups();

_configureFirebase();

await Authenticator.fetchStoredCredentials();

final user = await Client.getUserProfile();

if (Authenticator.credentials != null && user != null) {
Expand Down

0 comments on commit b336381

Please sign in to comment.