Skip to content

Commit df8f865

Browse files
nipunn1313NamesMT
authored andcommitted
convex-backend PR 121: types(getUserIdentity): note about behavior on HTTP Actions (#38180)
Resolves #120 ---- By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. Co-authored-by: Trung Dang <[email protected]> GitOrigin-RevId: 53e090ea7999c62383e907ff851e7fd5fb2b1226
1 parent 622777e commit df8f865

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/server/authentication.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ export interface Auth {
160160
* Get details about the currently authenticated user.
161161
*
162162
* @returns A promise that resolves to a {@link UserIdentity} if the Convex
163-
* client was configured with a valid ID token and `null` otherwise.
163+
* client was configured with a valid ID token, or if not, will:
164+
* + returns `null` on Convex queries, mutations, actions.
165+
* + `throw` on HTTP Actions.
164166
*/
165167
getUserIdentity(): Promise<UserIdentity | null>;
166168
}

0 commit comments

Comments
 (0)