Skip to content

Commit

Permalink
Update redirection.md
Browse files Browse the repository at this point in the history
  • Loading branch information
elitree authored and Eli Geller committed Apr 8, 2024
1 parent f86a10b commit a2037c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/go_router/doc/redirection.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ either the GoRouter or GoRoute constructor:

```dart
redirect: (BuildContext context, GoRouterState state) {
if (AuthState.of(context).isSignedIn) {
if (!AuthState.of(context).isSignedIn) {
return '/signin';
} else {
return null;
Expand Down

0 comments on commit a2037c2

Please sign in to comment.