You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(bb-auth-cognito): update API report + add changeset for auth.admin
Regenerate API.md to include the admin surface (AdminOptions, AdminSurface,
GroupAdmin/LifecycleAdmin, AdminGetterOf, AdminUser, AdminCreateInit) and the
const O class generic. Add a minor changeset documenting the feature + the
const O breaking change.
Add an opt-in `auth.admin` handle to `AuthCognito` for server-side group-membership and user-lifecycle administration.
6
+
7
+
Enable it by passing an `admin` options object; `admin.actions` scopes the granted `Admin*` / `List*` IAM. Without it, `auth.admin` is a compile error and no admin IAM is granted (unchanged default). Group names on the admin methods narrow via `GroupOf<O>`.
The `AuthCognito` class generic is now a `const` type parameter, so inline options literals narrow without `as const`.
15
+
16
+
BREAKING CHANGE: `const O` narrows the params of `requireRole`, `updateUserAttribute`, and `updateMFAPreference` for inline-literal options. Callers passing widened `string` variables to these now need a cast or literal arguments.
// Warning: (ae-incompatible-release-tags) The symbol "AttrOf" is marked as @public, but its signature references "CustomAttrNames" which is marked as @internal
16
55
//
17
56
// @public
@@ -20,8 +59,9 @@ export type AttrOf<O extends AuthCognitoOptions> = O extends {
0 commit comments