ceramicstudio/js-3id

Add support to resolve and authenticate with public authdata

zachferland opened this issue · 0 comments

  • Add helpers to resolve to PublicAuthData
await manager.resolvePubAuthData(did)
// resolve public authdata stream and return entire map
await manager._resolvePubAuthDataCAIP10(did, caip10)
// resolve map by resolvePubAuthData, return given caip10 key
  • Add support to authenticate and create authSecret by AuthDataTypes, fallback to existing message and secret auth method when necessary
const authSecret = await manager._authCreate()
// authCreate resolves any AuthDataTypes and determines message to sign or fallback
// const authSecret = await this.authProvider.authenticate(message)