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
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,8 @@ Any time the user data changes, the UserAuthWrapper will re-check for authentica
104
104
105
105
#### Config Object Keys
106
106
107
-
*`authSelector(state, [ownProps]): authData`\(*Function*): A state selector for the auth data. Just like `mapToStateProps`
107
+
*`authSelector(state, [ownProps], [isOnEnter]): authData`\(*Function*): A state selector for the auth data. Just like `mapToStateProps`.
108
+
ownProps will be null if isOnEnter is true because onEnter hooks cannot receive the component properties. Can be ignored when not using onEnter.
108
109
*`[failureRedirectPath]`\(*String*): Optional path to redirect the browser to on a failed check. Defaults to `/login`
109
110
*`[redirectAction]`\(*Function*): Optional redux action creator for redirecting the user. If not present, will use React-Router's router context to perform the transition.
110
111
*`[wrapperDisplayName]`\(*String*): Optional name describing this authentication or authorization check.
0 commit comments