Microsoft Graph API

I've integrated Microsoft graph api but when a new user logs in I need a way to request their credentials. Any ideas?

I keep getting this error.

Retool

Encountered an error (422):

CSRF DETECTED.

Please try again.

You need to register an application in Azure. Then setup your ressource with OAUTH2