Skip to content

Commit

Permalink
test: fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
finkinfridom committed Jan 12, 2024
1 parent 0f755bb commit cc2b11e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions __tests__/ZitadelStrategy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ describe("ZitadelStrategy", () => {
],
},
],
admin: {
user: "test-slug",
},
});
strategy = new ZitadelStrategy(
{
Expand Down
2 changes: 1 addition & 1 deletion src/strategies/ZitadelStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class ZitadelStrategy extends Strategy {
this.slug = collectionSlug;
const collection = ctx.collections[collectionSlug];
this.collectionHaveEmailField =
!collection.config.auth?.disableLocalStrategy;
!collection?.config?.auth?.disableLocalStrategy;
}

createPassword(
Expand Down

0 comments on commit cc2b11e

Please sign in to comment.