21 lines
606 B
TypeScript
21 lines
606 B
TypeScript
import { User } from '../../domain/entities/User';
|
|
|
|
export interface LoginWithIracingCallbackParams {
|
|
code: string;
|
|
state?: string;
|
|
returnTo?: string;
|
|
}
|
|
|
|
/**
|
|
* Application Use Case: LoginWithIracingCallbackUseCase
|
|
*
|
|
* Handles the callback after iRacing authentication.
|
|
*/
|
|
export class LoginWithIracingCallbackUseCase {
|
|
async execute(params: LoginWithIracingCallbackParams): Promise<User> {
|
|
// TODO: Implement actual logic for handling iRacing OAuth callback
|
|
console.warn('LoginWithIracingCallbackUseCase: Method not implemented.');
|
|
throw new Error('Method not implemented.');
|
|
}
|
|
}
|