refactor: Use generateAuthUrl method instead of createAuthData
This commit is contained in:
@@ -2,7 +2,7 @@ import { IField, IGlobalVariable } from '@automatisch/types';
|
||||
import { URLSearchParams } from 'url';
|
||||
import scopes from '../common/scopes';
|
||||
|
||||
export default async function createAuthData($: IGlobalVariable) {
|
||||
export default async function generateAuthUrl($: IGlobalVariable) {
|
||||
const oauthRedirectUrlField = $.app.auth.fields.find(
|
||||
(field: IField) => field.key == 'oAuthRedirectUrl'
|
||||
);
|
@@ -1,9 +1,8 @@
|
||||
import createAuthData from './create-auth-data';
|
||||
import generateAuthUrl from './generate-auth-url';
|
||||
import verifyCredentials from './verify-credentials';
|
||||
import isStillVerified from './is-still-verified';
|
||||
|
||||
export default {
|
||||
generateAuthUrl: true,
|
||||
fields: [
|
||||
{
|
||||
key: 'oAuthRedirectUrl',
|
||||
@@ -56,7 +55,7 @@ export default {
|
||||
},
|
||||
],
|
||||
|
||||
createAuthData,
|
||||
generateAuthUrl,
|
||||
verifyCredentials,
|
||||
isStillVerified,
|
||||
};
|
||||
|
Reference in New Issue
Block a user