Skip to content

Commit

Permalink
chore: remove sending token to client
Browse files Browse the repository at this point in the history
-> the error must be in the github api fetch call
  • Loading branch information
xynydev committed Apr 20, 2024
1 parent d43f6e6 commit 703c6bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export const handle: Handle = async ({ event, resolve }) => {
}
});
event.locals.githubUser = githubUserResponse.ok ? await githubUserResponse.json() : null;
event.locals.githubToken = githubToken;

return await resolve(event);
};
3 changes: 1 addition & 2 deletions src/routes/+layout.server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export async function load({ locals }) {
return {
githubUser: locals.githubUser,
githubToken: locals.githubToken
githubUser: locals.githubUser
};
}

0 comments on commit 703c6bb

Please sign in to comment.