chore: Extract authentication logic of the apps to their own classes
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
6b1dee053f
commit
46321f19f4
@@ -16,7 +16,7 @@ const testConnectionResolver = async (params: Params, req: RequestWithCurrentUse
|
||||
const appClass = (await import(`../../apps/${connection.key}`)).default;
|
||||
|
||||
const appInstance = new appClass(connection.data);
|
||||
const isStillVerified = await appInstance.isStillVerified();
|
||||
const isStillVerified = await appInstance.authenticationClient.isStillVerified();
|
||||
|
||||
connection = await connection.$query().patchAndFetch({
|
||||
verified: isStillVerified
|
||||
|
Reference in New Issue
Block a user