Skip to content

Modules

TrinityIDWallet cannot resolve data by its own. For that purpose, we use service providers, called modules in SDK context. Multiple modules can be added to the SDK during initialization process, based on your needs. Each module defines what kind of claims can resolve and provide to the TrinityIDWallet which will store their values.

To get deeper understanding, please check Custom module section of this documentation.

Twilio

Module claim

"comuny.ver.module.l2.otp.twilio"

Standard claims

"email"
"email_verified"

Specific claims

import de.comuny.module.twilio.dto.TwilioSpecificClaimName
Class name
TwilioEmail "comuny.ver.email.l2.otp.twilio"
TwilioEmailVerified "comuny.ver.email_verified.l2.otp.twilio"

Resolving events

import de.comuny.module.twilio.TwilioModuleResolveEvent
Class response required description
OnTwilioLoading no Indicates loading state of the module
OnTwilioEmailRequest yes Module asks you for the email you want to verify. Call event.continueResolving(email) to continue, or it.cancel() to interrupt the flow
OnTwilioOtpCodeRequest yes Module asks you for the otp code sent to your email. Call event.continueResolving(code) to continue, or it.cancel() to interrupt the flow
OnTwilioResolvingError no Indicates an error that might occur during code verification