deep-foundation / deep-foundation/deeplinks

Decode token directly to deep.linkId

Open
#175 3 comments 6 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
13
Forks
8
PR merge metrics
No merged PRs in 30d

Description

![Screenshot_20230603_020633](https://github.com/deep-foundation/deeplinks/assets/1431904/c5496e71-23f2-493d-8dfc-9cb0ebdec287)

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.