pub struct IdentityToolkitEndpoints { /* private fields */ }Expand description
Builds Identity Toolkit v1 REST endpoint URLs for a given project.
Implementations§
Source§impl IdentityToolkitEndpoints
impl IdentityToolkitEndpoints
Sourcepub fn live(project_id: &str) -> Self
pub fn live(project_id: &str) -> Self
Endpoints pointed at the production Identity Toolkit API.
Sourcepub fn emulator(host: &str, project_id: &str) -> Self
pub fn emulator(host: &str, project_id: &str) -> Self
Endpoints pointed at a local Firebase Auth Emulator instance.
host is the emulator host and port, e.g. localhost:9099.
Sourcepub fn lookup(&self) -> String
pub fn lookup(&self) -> String
accounts:lookup — fetch one or more users by uid, email, or phone number.
Sourcepub fn sign_up(&self) -> String
pub fn sign_up(&self) -> String
accounts:signUp — create a new user (or, unauthenticated, sign one up).
Sourcepub fn update(&self) -> String
pub fn update(&self) -> String
accounts:update — update an existing user, including custom claims.
Sourcepub fn batch_get(&self) -> String
pub fn batch_get(&self) -> String
projects/{projectId}/accounts:batchGet — list users, paginated via
nextPageToken.
Unlike the other accounts:* operations, batchGet requires the
projects/{projectId} path segment and is called with GET (query
parameters), not POST with a JSON body — confirmed against the
Firebase Auth Emulator’s own API spec after the flat
/accounts:batchGet path (matching every other operation here)
returned a 404 in practice.
projects/{projectId}:createSessionCookie — exchange an ID token for
a session cookie.
Not an accounts:* operation like the others in this crate — it’s
projects/{projectId}:createSessionCookie with the colon directly
after the project ID segment. Confirmed against the Firebase Auth
Emulator’s own API spec after the previous /accounts:createSessionCookie
path returned a 404 for every request, valid or not, in practice.