Skip to content

Commit

Permalink
Update upgrade-legacy codemod imports (#3788)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhsuresh authored Aug 24, 2022
1 parent 161270e commit c53978d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/sharp-olives-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---

Fix upgrade-legacy `Update imports` step — import `getAntiCSRFToken` and `AuthenticatedMiddlewareCtx` from correct locations
4 changes: 2 additions & 2 deletions packages/codemod/src/upgrade-legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ const upgradeLegacy = async () => {
GetServerSideProps: "next",
InferGetServerSidePropsType: "next",
GetServerSidePropsContext: "next",
AuthenticatedMiddlewareCtx: "@blitz/rpc",
getAntiCSRFToken: "@blitzjs/rpc",
AuthenticatedMiddlewareCtx: "@blitzjs/rpc",
getAntiCSRFToken: "@blitzjs/auth",
useSession: "@blitzjs/auth",
useAuthenticatedSession: "@blitzjs/auth",
useRedirectAuthenticated: "@blitzjs/auth",
Expand Down

0 comments on commit c53978d

Please sign in to comment.