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
const { AuthenticationService, JWTStrategy } = require('@feathersjs/authentication'); | |
const { LocalStrategy } = require('@feathersjs/authentication-local'); | |
const { expressOauth, OAuthStrategy } = require('@feathersjs/authentication-oauth'); | |
class GoogleStrategy extends OAuthStrategy { | |
// https://github.com/feathersjs/feathers/blob/be91206e3dba1e65a81412b7aa636bece3ab4aa2/packages/authentication-oauth/src/strategy.ts#L113-L119 | |
async createEntity(profile, params) { | |
// check if the user exists and has access | |
if (youShouldLetHimIn) { |
OlderNewer