Skip to content

Commit

Permalink
fix(entrypoint): exclude unauthenticated from getAvailableRoles()
Browse files Browse the repository at this point in the history
  • Loading branch information
minenwerfer committed Jan 17, 2025
1 parent acb655c commit 32414bb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/curvy-bugs-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aeriajs/entrypoint": patch
---

Exclude `unauthenticated` from `getAvailableRoles()`
5 changes: 4 additions & 1 deletion packages/entrypoint/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ export const getAvailableRoles = async () => {
}
}

availableRolesMemo = Array.from(new Set(availableRoles))
const rolesSet = new Set(availableRoles)
rolesSet.delete('unauthenticated')

availableRolesMemo = Array.from(rolesSet)
return availableRolesMemo
}

0 comments on commit 32414bb

Please sign in to comment.