Skip to content

Commit

Permalink
Merge pull request #1014 from auth0/with-page-auth-req-user
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath authored Jan 20, 2023
2 parents 51f1527 + badf79c commit 93a2431
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helpers/with-page-auth-required.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { ParsedUrlQuery } from 'querystring';
*
* @category Server
*/
export type GetServerSidePropsResultWithSession<P = any> = GetServerSidePropsResult<P & { user?: Claims | null }>;
export type GetServerSidePropsResultWithSession<P = any> = GetServerSidePropsResult<P & { user: Claims }>;

/**
* A page route that has been augmented with {@link WithPageAuthRequired}.
Expand Down Expand Up @@ -51,8 +51,8 @@ export type PageRoute<P, Q extends ParsedUrlQuery = ParsedUrlQuery> = (
* async getServerSideProps(ctx) {
* // access the user session if needed
* // const session = await getSession(ctx.req, ctx.res);
* return {
* props: {
* return {
* props: {
* // customProp: 'bar',
* }
* };
Expand Down

0 comments on commit 93a2431

Please sign in to comment.