Skip to content

Commit

Permalink
Merge pull request #243 from asgardeo/pavinduLakshan-patch-3
Browse files Browse the repository at this point in the history
  • Loading branch information
pavinduLakshan authored Aug 9, 2024
2 parents c86221a + 55bba0a commit 62b33c3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,6 @@ This method returns the `ID token` in a form of a string. To get the decoded ID
```TypeScript
getIDToken(): Promise<string>
```
>**Warning**
>The promise resolves successfully only if the storage type is set to [`sessionStorage`](#session-storage) or [`localStorage`](#local-storage). If it is set to [`webWorker`](#web-worker), an error is thrown.
>The reason is that the token is stored inside the web worker and cannot be accessed from outside.
#### Returns
A promise that resolves with the ID token as a string.
Expand Down

0 comments on commit 62b33c3

Please sign in to comment.