mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
feat: support google login on desktop (#4053)
Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
@@ -34,7 +34,7 @@ export class AuthResolver {
|
||||
|
||||
@ResolveField(() => TokenType)
|
||||
token(@CurrentUser() currentUser: UserType, @Parent() user: UserType) {
|
||||
if (user !== currentUser) {
|
||||
if (user.id !== currentUser.id) {
|
||||
throw new ForbiddenException();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user