Created
April 29, 2020 19:51
-
-
Save iMichaelOwolabi/6291ce42fbf7c79a323d040ad5d904a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@nestjs/common'; | |
@Injectable() | |
export class AppService { | |
googleLogin(req) { | |
if (!req.user) { | |
return 'No user from google' | |
} | |
return { | |
message: 'User information from google', | |
user: req.user | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment