Skip to content

Instantly share code, notes, and snippets.

@iMichaelOwolabi
Created April 29, 2020 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iMichaelOwolabi/6291ce42fbf7c79a323d040ad5d904a8 to your computer and use it in GitHub Desktop.
Save iMichaelOwolabi/6291ce42fbf7c79a323d040ad5d904a8 to your computer and use it in GitHub Desktop.
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