Get Groups in NextJS App

Hi Team,

We want to implement groups in our app. Can you please help in implementation of it. Currently in scope i have included groups but i did not get anything. Please help with example for Nextjs app with next-auth.

Thanks!

You mention using the groups scopes, but from which authorization server (issuer) is your application requesting tokens?

Yes, It is through Organization authentication and want to fetch the groups associated with the user.

How did you configure the groups claim on the Application → Sign On/Authentication tab?

For example, the set-up I have below is broad and is designed to return all groups of which the user is a member within the claim