Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add admin functionality to Cognito #1795

Conversation

JR40159
Copy link
Member

@JR40159 JR40159 commented Jan 28, 2025

No description provided.

const initialValue: Array<string> = []
const users = results.Users.reduce((acc, cognitoUser) => {
const dn = cognitoUser.Attributes?.find((attribute) => attribute.Name === dnName)?.Value
if (!dn) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super minor but could do:

    if (dn) {
      acc.push(dn)
    }
    return acc

@JR40159 JR40159 merged commit 629a051 into main Feb 3, 2025
18 checks passed
@JR40159 JR40159 deleted the feature/BAI-1605-update-oauth-implementation-to-use-bailo-admin-group branch February 3, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants