Skip to content

Commit

Permalink
throw ServerError in requireGithubAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
icedevera committed May 6, 2024
1 parent ebb128b commit 09dfce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const requireGitHubAuth = async () => {
const session = await getServerAuthSession()

if (!session || session.user.provider !== 'github') {
throw new Error(
throw new ServerError(
'Not authorized - GitHub authenticated account is required.',
)
}
Expand Down

0 comments on commit 09dfce0

Please sign in to comment.