fix(webkit): fix issue with webkit not supporting .at()

This commit is contained in:
Amruth Pillai
2022-03-11 15:40:25 +01:00
parent 7d8828a358
commit 2654cba039
5 changed files with 6 additions and 6 deletions

View File

@ -129,7 +129,7 @@ export class AuthService {
const UserInfoClient = google.oauth2('v2').userinfo;
const { data } = await UserInfoClient.get({ auth: OAuthClient });
const username = data.email.split('@').at(0);
const username = data.email.split('@')[0];
const createUserDto: CreateGoogleUserDto = {
name: `${data.given_name} ${data.family_name}`,