Skip to content

Commit

Permalink
[Bug]: 对象列表页面点击新建报401【macpro 10.15 catalina】 #6951
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhaolin committed Jul 1, 2024
1 parent 94c1cf8 commit 21b9e28
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/auth/src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,14 @@ export async function auth(request: Request, response: Response): Promise<any> {
if (isAPIKey(spaceAuthToken)) {
authToken = spaceAuthToken;
} else {
if (!spaceId) {
spaceId = spaceAuthToken.split(",")[0];
const splitSpaceId = spaceAuthToken.split(",")[0];
const splitAuthtoken = spaceAuthToken.split(",")[1];
if (!spaceId && splitSpaceId) {
spaceId = splitSpaceId;
}
if (splitAuthtoken) {
authToken = splitAuthtoken;
}
authToken = spaceAuthToken.split(",")[1];
}
}

Expand Down

0 comments on commit 21b9e28

Please sign in to comment.