Skip to content

Commit dea6a2c

Browse files
authored
fix(auth-twitter): Safeguard against undefined ID in Twitter auth response
1 parent aefd4c2 commit dea6a2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auth-twitter/auth-twitter.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class AuthTwitterService {
3434
});
3535

3636
return {
37-
id: data.id.toString(),
37+
id: data.id?.toString(),
3838
email: data.email,
3939
firstName: data.name,
4040
};

0 commit comments

Comments
 (0)