Skip to content

Commit

Permalink
chore: naming nitpicks
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoshify committed Dec 17, 2024
1 parent 317e477 commit f5b4ca3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/authMiddleware/authMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const handleMiddleware = async (req, options, onSuccess) => {

// if we want layouts/pages to get immediate access to the new token,
// we need to set the cookie on the response here
const splitSerializedCookies = getSplitCookies("access_token", refreshResponse.access_token)
splitSerializedCookies.forEach((cookie) => {
const splitCookies = getSplitCookies("access_token", refreshResponse.access_token)
splitCookies.forEach((cookie) => {
resp.cookies.set(cookie.name, cookie.value, cookie.options);
})

Expand Down Expand Up @@ -103,8 +103,8 @@ const handleMiddleware = async (req, options, onSuccess) => {

// as above, if we want layouts/pages to get immediate access to the new token,
// we need to set the cookie on the response here
const splitSerializedCookies = getSplitCookies("id_token", refreshResponse.id_token)
splitSerializedCookies.forEach((cookie) => {
const splitCookies = getSplitCookies("id_token", refreshResponse.id_token)
splitCookies.forEach((cookie) => {
resp.cookies.set(cookie.name, cookie.value, cookie.options);
})

Expand Down

0 comments on commit f5b4ca3

Please sign in to comment.