Skip to content

Commit

Permalink
fix: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
BibiSebi committed Jul 1, 2024
1 parent a3baf27 commit 9843d3e
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 121 deletions.
10 changes: 1 addition & 9 deletions src/storyblok-auth-api/handle-requests/callbackCookie.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GetCookie, getSignedCookie, signData } from '../../utils'
import { signData } from '../../utils'
import { SessionElement } from '../ResponseElement'

/**
Expand All @@ -18,14 +18,6 @@ export type CallbackCookieData = {
*/
const callbackCookieName = 'auth.sb.callback'

// TODO validation
export const getCallbackCookieData = (
secret: string,
getCookie: GetCookie,
): CallbackCookieData | undefined =>
// TODO add runtime validation
getSignedCookie(secret, getCookie, callbackCookieName) as CallbackCookieData

export const createCallbackData = (
secret: string,
data: CallbackCookieData,
Expand Down
38 changes: 0 additions & 38 deletions src/utils/cookie/getSignedCookie/getSignedCookie.test.ts

This file was deleted.

14 changes: 0 additions & 14 deletions src/utils/cookie/getSignedCookie/getSignedCookie.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/utils/cookie/getSignedCookie/index.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/utils/cookie/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
export * from './getCookie'
export * from './setCookie'
export * from './getSignedCookie'
export * from './setSignedCookie'
1 change: 0 additions & 1 deletion src/utils/cookie/setSignedCookie/index.ts

This file was deleted.

47 changes: 0 additions & 47 deletions src/utils/cookie/setSignedCookie/setSignedCookie.test.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/utils/cookie/setSignedCookie/setSignedCookie.ts

This file was deleted.

0 comments on commit 9843d3e

Please sign in to comment.