widget chat 25
This commit is contained in:
parent
e2da8cfca4
commit
b9a6589e14
@ -86,9 +86,9 @@ export const authOptions: NextAuthOptions = {
|
|||||||
// Initial sign in
|
// Initial sign in
|
||||||
if (account && profile) {
|
if (account && profile) {
|
||||||
// Set user data from profile
|
// Set user data from profile
|
||||||
token.username = profile.preferred_username;
|
token.username = profile.preferred_username || '';
|
||||||
token.first_name = profile.given_name;
|
token.first_name = profile.given_name || '';
|
||||||
token.last_name = profile.family_name;
|
token.last_name = profile.family_name || '';
|
||||||
token.role = profile.groups || [];
|
token.role = profile.groups || [];
|
||||||
|
|
||||||
// Get user info from Rocket.Chat using the admin token
|
// Get user info from Rocket.Chat using the admin token
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user