Skip to content

Commit a3c2464

Browse files
committed
Suggestion
1 parent f5ed985 commit a3c2464

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

packages/server/api/src/app/user-info/cloud-auth.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ const getCloudToken = (request: FastifyRequest): string | undefined => {
1818
return cookieToken;
1919
}
2020

21-
if (headerToken) {
22-
return headerToken.replace('Bearer ', '');
23-
}
24-
25-
return undefined;
21+
return headerToken;
2622
};
2723

2824
export function getVerifiedUser(

0 commit comments

Comments
 (0)