How to integrate identity?

How do i integrate DFX 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 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