deep-foundation / deep-foundation/deeplinks
Decode token directly to deep.linkId
- Dominant language
- TypeScript
- Stars
- 13
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description

It is possible to get `deep.linkId` directly from `apolloClient` `token` if it is present.
If we do it we also might do not need do `await deep.whoami()` to get `deep.linkId`.
And this code will work:
```js
const apolloClient = generateApolloClient({
path,
ssl: true,
ws: true,
token
});
const deep = new DeepClient({ apolloClient });
console.log("deep.linkid", deep.linkId);
assert.notEqual(deep.linkId, 0);
assert.notEqual(deep.linkId, undefined);
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.