I am quite confused with method requestCredentials in provider external auth. I am understanding when call provider.requestCredentials() will start to auth process base on manifest define (authorization → exchange ). This code work perfectly:
It will redirect me to Auth page of external provider I have been using like facebook login page. After authenticate It redirect me to Forge by redirect_uri have been defined. But when I change my code to:
Thanks for reaching out. await provider.requestCredentials(); will always trigger the consent flow. This should live in the conditional in your second statement.
Unfortunately that error is not very helpful, as it is part of triggering the consent flow.
Yah, If I put await provider.requestCredentials() in my conditional. Next time it will auto pass login step because already have credentials. Can you help me more understand about credentials in provider. I am trying to log credentials and see this: [<token>], and can I clear this credentials? Thanks for your reply!