File tree Expand file tree Collapse file tree
packages/server/api/src/app/authentication/basic Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { authenticateUserInOpenOpsTables } from '@openops/common' ;
22import { AuthenticationResponse } from '@openops/shared' ;
33import { userService } from '../../user/user-service' ;
4- import { getUserCreatedHook } from '../authentication-service-factory' ;
5- import { getProjectAndToken } from '../context/create-project-auth-context' ;
4+ import {
5+ getProjectAndTokenService ,
6+ getUserCreatedHook ,
7+ } from '../authentication-service-factory' ;
8+ import { } from '../context/create-project-auth-context' ;
69import { createUser } from '../new-user/create-user' ;
710import { assignDefaultOrganization } from '../new-user/organization-assignment' ;
811import { SignInParams , SignUpParams } from '../types' ;
@@ -19,7 +22,10 @@ export const authenticationService = {
1922 const userWithOrganization = await assignDefaultOrganization ( user ) ;
2023 await getUserCreatedHook ( userWithOrganization ) . execute ( ) ;
2124
22- const projectContext = await getProjectAndToken ( user , tablesRefreshToken ) ;
25+ const projectContext = await getProjectAndTokenService ( ) . fetch (
26+ user ,
27+ tablesRefreshToken ,
28+ ) ;
2329 return buildAuthResponse ( projectContext ) ;
2430 } ,
2531
You can’t perform that action at this time.
0 commit comments