Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
Merge branch 'develop' into feature/225-upgrade-verida-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-verida authored Apr 17, 2024
2 parents 5a345b7 + 973642d commit 681cafc
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 23 deletions.
2 changes: 0 additions & 2 deletions docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ Read more about the [concepts](/docs/concepts) behind Verida:
* Implement [Verida Connect](/docs/single-sign-on-sdk) in your application.
* Add additional capabilities including data storage and messaging using the [Client SDK](/docs/client-sdk)

* See the [API Docs](/docs/api/verida-js)


### Join Verida

Expand Down
2 changes: 1 addition & 1 deletion docs/single-sign-on-sdk/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ When the user accepts the login request, an `accessToken` and a `refreshToken` a

Due to limitations with how mobile devices work, the redirection of the user, enabled by the `request?.openUrl?` option, will open a new tab in the default browser.

It is recommended to use the [hasSession](../api/verida-js/modules/verida_account_web_vault.md#hassession) method and a conditional `connect()` to optimize the user experience. An example of this pattern is shown in the [Single Sign On tutorial](../tutorial/SSO.mdx).
It is recommended to use the `hasSession` method and a conditional `connect()` to optimize the user experience. An example of this pattern is shown in the [Single Sign On tutorial](../tutorial/SSO.mdx).

Authorization uses an `accessToken` and a `refreshToken`. If an `accessToken` expires, the SDK will automatically attempt to fetch a new `accessToken` using the `refreshToken`. If the `refreshToken` has expired, the SDK will re-open the QR code SSO modal and ask the user to re-login before continuing. Any existing network connections will be restored once the user logs in again.
7 changes: 0 additions & 7 deletions docs/tutorial/SSO.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,3 @@ VeridaLoginExample = () => {
## Verida Connect documentation

See the [Verida Connect documentation](/single-sign-on-sdk/single-sign-on-sdk.md) for complete documentation.

### APIs used in example

- [Context](/docs/api/verida-js/classes/verida_client_ts.Context)
- [hasSession](/docs/api/verida-js/modules/verida_account_web_vault#hassession)
- [VaultAccount](/docs/api/verida-js/classes/verida_account_web_vault.VaultAccount)
- [VaultAccountConfig](/docs/api/verida-js/interfaces/verida_account_web_vault.VaultAccountConfig)
7 changes: 0 additions & 7 deletions docs/tutorial/databases.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,3 @@ VeridaDatabaseExample = () => {
## Database documentation

See the [Verida Database documentation](/client-sdk/data.md) for complete documentation.

### APIs used in example

* [Context.openDatabase()](/docs/api/verida-js/classes/verida_client_ts.Context/#opendatabase)
* [Database](/docs/api/verida-js/interfaces/verida_client_ts.Database)
* [Database.getMany()](/docs/api/verida-js/interfaces/verida_client_ts.Database#getmany)
* [Database.deleteAll()](/docs/api/verida-js/interfaces/verida_client_ts.Database#deleteall)
6 changes: 0 additions & 6 deletions docs/tutorial/encryption.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,3 @@ VeridaEncryptionExample = () => {
## Database documentation

See the [Verida Database documentation](/client-sdk/data.md) for complete documentation.

* [Context.openDatabase()](/docs/api/verida-js/classes/verida_client_ts.Context/#opendatabase)
* [Database](/docs/api/verida-js/interfaces/verida_client_ts.Database)
* [Database.getMany()](/docs/api/verida-js/interfaces/verida_client_ts.Database#getmany)
* [Database.get()](http://localhost:3000/docs/api/verida-js/interfaces/verida_client_ts.Database#get)

0 comments on commit 681cafc

Please sign in to comment.