Skip to content

Auth API

Endpoints for authentication and user management.

https://api.os.eura.dev/api/v1/auth

Initiate the GitHub OAuth flow to authenticate users.

GET /auth/github
Parameter Type Required Description
redirect_uri string No Custom redirect URI (defaults to callback)
// Redirect user to GitHub
window.location.href = 'https://api.os.eura.dev/api/v1/auth/github';

Get information about the currently authenticated user.

GET /auth/me

Required: Session cookie

{
"id": "usr_abc123",
"username": "your-username",
"githubId": "1234567"
}

Clear the current session.

POST /auth/logout

Required: Session cookie (to clear)

{
"message": "Logged out successfully"
}