Skip to content

Commit

Permalink
Check authenticated property
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-lippert authored Sep 26, 2023
1 parent 6f00047 commit c0891b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class API {
req.metadata = this.metadata

if (this?.options?.requireAuth) {
if (!user) {
if (!user?.authenticated) {
return json({
api: this.metadata,
data: {
Expand Down

2 comments on commit c0891b3

@workers-do
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on c0891b3 Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

apis-do – ./

apis.do
apis-do.dev.driv.ly
apis-do-git-main.dev.driv.ly

Please sign in to comment.