widget chat 25

This commit is contained in:
Alma 2025-04-11 12:46:43 +02:00
parent e2da8cfca4
commit b9a6589e14

View File

@ -86,9 +86,9 @@ export const authOptions: NextAuthOptions = {
// Initial sign in
if (account && profile) {
// Set user data from profile
token.username = profile.preferred_username;
token.first_name = profile.given_name;
token.last_name = profile.family_name;
token.username = profile.preferred_username || '';
token.first_name = profile.given_name || '';
token.last_name = profile.family_name || '';
token.role = profile.groups || [];
// Get user info from Rocket.Chat using the admin token