feat(frontend): Implement HttpOnly cookie authentication and API v1 integration. Update AuthService for cookie-based session management, configure Axios with v1 prefix and credentials, and enhance OIDC callback logic.
This commit is contained in:
@@ -28,6 +28,11 @@ export const AuthService = {
|
||||
}
|
||||
},
|
||||
|
||||
async exchangeOIDCCode(code: string): Promise<AuthResponse> {
|
||||
const response = await api.get<AuthResponse>(`/auth/oidc/callback?code=${code}`)
|
||||
return response.data
|
||||
},
|
||||
|
||||
async register(email: string, password: string): Promise<UserResponse> {
|
||||
const response = await api.post<UserResponse>("/auth/register", {
|
||||
email,
|
||||
|
||||
Reference in New Issue
Block a user