hcengineering / hcengineering/platform

Fix checkJoined exception handling

Open
#8,932 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
27.7k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

Replace with something like:

```plaintext
if (token == null) {
return [unknownStatus('Please login'), null]
}

try {
const loginInfo = await getAccountClient().getLoginInfoByToken()
if (loginInfo.token == null) {
return [unknownStatus('Please login'), null]
}
} catch (err: any) {
return [unknownStatus('Please login'), null]
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.