ceramicstudio / js-3id

Authentication system for Ceramic apps that works with blockchain wallets.
Other
107 stars 41 forks source link

Add support to resolve and authenticate with public authdata #172

Closed zachferland closed 2 years ago

zachferland commented 3 years ago
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
const authSecret = await manager._authCreate()
// authCreate resolves any AuthDataTypes and determines message to sign or fallback
// const authSecret = await this.authProvider.authenticate(message)