Skip to content

Commit

Permalink
fix(lucia): rename auth handler to authHandle (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianGonz97 authored Oct 15, 2024
1 parent 55b2512 commit 332e1c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nice-rockets-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'sv': patch
---

fix: rename `auth` handler to `handleAuth` for `lucia`
2 changes: 1 addition & 1 deletion packages/adders/lucia/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export default defineAdder({
const { ast, generateCode } = parseScript(content);
imports.addNamespace(ast, '$lib/server/auth.js', 'auth');
imports.addNamed(ast, '$app/environment', { dev: 'dev' });
kit.addHooksHandle(ast, typescript, 'auth', getAuthHandleContent());
kit.addHooksHandle(ast, typescript, 'handleAuth', getAuthHandleContent());
return generateCode();
}
},
Expand Down

0 comments on commit 332e1c1

Please sign in to comment.