mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-09-13 11:20:12 +00:00
21 lines
425 B
JavaScript
21 lines
425 B
JavaScript
const type = 'custom'
|
|
|
|
const verifyIdentity = async (data) => { return true }
|
|
|
|
const CustomIdentityProvider = () => async () => {
|
|
const getId = () => { return 'custom' }
|
|
|
|
const signIdentity = (data) => { return `signature '${data}'` }
|
|
|
|
return {
|
|
getId,
|
|
signIdentity,
|
|
type
|
|
}
|
|
}
|
|
|
|
CustomIdentityProvider.verifyIdentity = verifyIdentity
|
|
CustomIdentityProvider.type = type
|
|
|
|
export default CustomIdentityProvider
|