Skip to content
LogoLogo

setCredentialProvider

Swap in a credential provider after construction.

Useful when the wallet a user authenticates with is not known at the time you build the instance — a browser app, typically, where Nautilus.create runs before the user connects.

Usage

.(new ('a-session-id')) 

Returns

  • Type: void

Parameters

credentials

  • Type: CredentialProvider

Any implementation of the interface — WaltIdCredentialProvider for a real wallet, StaticCredentialProvider when you already hold a verifier session id, or NoopCredentialProvider to disable SSI again.