Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class VerifiedEmailFunctions(
private val credentialManager: CredentialManager,
) {

/**
/**
* Constructs an OpenID4VP request for a UserInfoCredential, sends it to the
* CredentialManager, and extracts the verified email and user profile claims
* from the returned SD-JWT.
Expand All @@ -47,10 +47,10 @@ class VerifiedEmailFunctions(
*/
@OptIn(ExperimentalDigitalCredentialApi::class)
suspend fun getVerifiedUserInfo(activity: Activity) {
// [START android_identity_get_verified_user_info_request]
// [START android_identity_get_verified_user_info_request]
val nonce = generateSecureRandomNonce()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This space will render strangely on DAC.


// This request follows the OpenID4VP spec
// This request follows the OpenID4VP spec
val openId4vpRequest = """
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This space will render on DAC too.

{
"requests": [
Expand Down
Loading