How to integrate identity?

How do i integrate DFX identity.ic0.app to my dapp ? How do i get the users principal to credit my tokens as rewards ?

1 Like

See this

As for your second question no idea. Probably in the works

1 Like

Yep, the Main.mo code from my example shows how to get the principal from the message.caller. You can then use that as a consistent Principal using their Internet Identity

2 Likes