lint
This commit is contained in:
parent
6462848191
commit
f7085a57c7
|
@ -1,4 +1,8 @@
|
||||||
const { generateTemplateID, getTemplateParams, StaticDatabases } = require("@budibase/auth").db
|
const {
|
||||||
|
generateTemplateID,
|
||||||
|
getTemplateParams,
|
||||||
|
StaticDatabases,
|
||||||
|
} = require("@budibase/auth").db
|
||||||
const { CouchDB } = require("../../../db")
|
const { CouchDB } = require("../../../db")
|
||||||
const { TemplatePurposePretty } = require("../../../constants")
|
const { TemplatePurposePretty } = require("../../../constants")
|
||||||
|
|
||||||
|
@ -42,7 +46,7 @@ exports.save = async ctx => {
|
||||||
|
|
||||||
exports.definitions = async ctx => {
|
exports.definitions = async ctx => {
|
||||||
ctx.body = {
|
ctx.body = {
|
||||||
purpose: TemplatePurposePretty
|
purpose: TemplatePurposePretty,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,11 @@ exports.googlePreAuth = async (ctx, next) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.googleAuth = async (ctx, next) => {
|
exports.googleAuth = async (ctx, next) => {
|
||||||
const strategy = await google.strategyFactory(ctx)
|
const strategy = await google.strategyFactory({
|
||||||
|
type: Configs.GOOGLE,
|
||||||
|
user: ctx.user._id,
|
||||||
|
group: ctx.query.group,
|
||||||
|
})
|
||||||
|
|
||||||
return passport.authenticate(
|
return passport.authenticate(
|
||||||
strategy,
|
strategy,
|
||||||
|
|
Loading…
Reference in New Issue