You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix(auth): add warning for invalid auth providers - prescottprue#559
* fix(docs): cleanup redux-persist example to remove autoRehydrate - prescottprue#545
* fix(docs): update SSR docs to include a section about Firestore - prescottprue#456
* fix(docs): update docs to have redux-auth-wrapper v2 examples above older examples - prescottprue#542
@@ -145,39 +126,43 @@ Or it can be used at the route level:
145
126
```
146
127
147
128
148
-
### Redirect Authenticated
149
-
Just as easily as creating a wrapper for redirect if a user is not logged in, we can create one that redirects if a user *IS* authenticated. This can be useful for pages that you do not want a logged in user to see, such as the login page.
// routerActions.replace // if using react-router-redux
166
144
dispatch({
167
-
type:'AUTHED_REDIRECT',
168
-
payload: { message:'User is authenticated. Redirecting home...' }
145
+
type:'UNAUTHED_REDIRECT',
146
+
payload: { message:'You must be authenticated.' },
169
147
})
170
148
}
171
149
})
172
150
```
173
151
152
+
### Redirect Authenticated
153
+
154
+
Just as easily as creating a wrapper for redirect if a user is not logged in, we can create one that redirects if a user *IS* authenticated. This can be useful for pages that you do not want a logged in user to see, such as the login page.
0 commit comments