Expand description
Authentication API - User registration, login, email verification, and Google OAuth
Structs§
- Auth
Response - Auth
State - Claims
- Google
Callback Query - Google
Init Request - GoogleO
Auth Pending - Holds the Google OAuth client credentials and a map of in-flight auth states.
Map key =
stateparam; value = (redirect_uri, Option). - GoogleO
Auth Result - Google
Status Query - Login
Request - MeRequest
- Signup
Request - User
Response - Verify
Email Request
Functions§
- get_
current_ user - google_
callback - GET /auth/google/callback?code=&state=&error= This endpoint is hit by the system browser after Google redirects back. Returns an HTML page (shown in the system browser, not the Tauri WebView).
- google_
init - POST /auth/google/init Body: { “port”: 8000 } Returns: { “auth_url”: “https://accounts.google.com/…”, “state”: “hex-string” }
- google_
status - GET /auth/google/status?state=
Returns { “pending”: true } while waiting, or full auth result when done. - login
- signup
- verify_
email