Type Alias WithPageAuthRequiredPageRouterOptions<P, Q>
If you have a custom returnTo url you should specify it in returnTo.
You can pass in your own getServerSideProps method, the props returned from this will be
merged with the user props. You can also access the user session data by calling getSession
inside of this method. For example:
If you have a custom returnTo url you should specify it in
returnTo
.You can pass in your own
getServerSideProps
method, the props returned from this will be merged with the user props. You can also access the user session data by callinggetSession
inside of this method. For example: