Skip to content

Commit

Permalink
feat(nextjs): Strictly type all possible withServerSideAuth return va…
Browse files Browse the repository at this point in the history
…lue combinations
  • Loading branch information
nikosdouvlis committed Feb 28, 2022
1 parent ccab909 commit beba831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextjs/src/middleware/withServerSideAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getAuthData, injectAuthIntoContext, injectSSRStateIntoProps, sanitizeAu
const EMPTY_GSSP_RESPONSE = { props: {} };

export function withServerSideAuth<
CallbackReturn extends GetServerSidePropsResult<any>,
CallbackReturn extends GetServerSidePropsResult<any> | Promise<GetServerSidePropsResult<any>>,
Options extends WithServerSideAuthOptions,
>(
callback: WithServerSideAuthCallback<CallbackReturn, Options>,
Expand Down

0 comments on commit beba831

Please sign in to comment.