We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
userId
1 parent 36f1011 commit 382f02aCopy full SHA for 382f02a
browser/websocket/pull.ts
@@ -73,7 +73,11 @@ const getUserId = async (init?: BaseOptions): Promise<
73
if (isErr(result)) return result;
74
75
const user = unwrapOk(result);
76
- return "id" in user ? createOk(user.id) : createErr({
+ if ("id" in user) {
77
+ userId = user.id;
78
+ return createOk(user.id);
79
+ }
80
+ return createErr({
81
name: "NotLoggedInError",
82
message: "This script cannot be used without login",
83
});
0 commit comments