API Endpoints
GET
/oauth/authorize
Starts OAuth and redirects users to Telegram.
GET
/oauth/callback
Processes Telegram auth data and returns an authorization code.
POST
/oauth/token
Exchanges the authorization code for an access token.
GET
/oauth/userinfo
Returns profile data for a valid bearer token.
Authorize request
/oauth/authorize?client_id=YOUR_CLIENT_ID&redirect_uri=https://your-app.com/callback&state=csrf_token