Social Verification

Clique supports different forms of social verification with end-to-end encrypted OAuth tokens.

List of Data Sources

Example

The example illustrates how to pick up properties you needed. It's useful when you want to submit this to some contracts which may require a specific structure.

name = "example_twitterUserInfo"
spec-version = "1"
type = "Schema"

proof-type = ["TEE"]

[input]
username = { type = "string" }

[output]
createdDate = { type = "u64", ref = "$tasks.clique_twitterPublicInfo.createdAt" }
followerCount = { type = "u64", ref = "$tasks.clique_twitterPublicInfo.followerCount"}
updatedAt = { type = "u64", ref = "$tasks.clique_twitterPublicInfo.timestamp" }

[[tasks]]
name = "clique_twitterPublicInfo"
proof-preference = "TEE"
[[tasks.input]]
username = { ref = "$input.address" }

Last updated