Skip to content

Commit

Permalink
fix: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
J0 committed Aug 30, 2024
1 parent 9d11b40 commit b5f8c98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cookies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,10 @@ export function createStorageFromOptions(

let decoded = chunkedCookie;

if (chunkedCookie.startsWith(BASE64_PREFIX)) {
if (
typeof chunkedCookie === "string" &&
chunkedCookie.startsWith(BASE64_PREFIX)
) {
decoded = stringFromBase64URL(
chunkedCookie.substring(BASE64_PREFIX.length),
);
Expand Down

0 comments on commit b5f8c98

Please sign in to comment.