Skip to content

Commit

Permalink
fix(nextjs): Type of auth().protect() when user is signed out
Browse files Browse the repository at this point in the history
  • Loading branch information
panteliselef committed Dec 15, 2023
1 parent a9fe242 commit 59f1603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextjs/src/app-router/server/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type AuthSignedOut = AuthObjectWithoutResources<
* This function is experimental as it throws a Nextjs notFound error if user is not authenticated or authorized.
* In the future we would investigate a way to throw a more appropriate error that clearly describes the not authorized of authenticated status.
*/
protect: never;
protect: () => never;
}
>;

Expand Down

0 comments on commit 59f1603

Please sign in to comment.