If the client allows it, a message is sent to the window opened indicating the login is completed, then attempt to automatically close.
Determine If Sign In Was Successful
With the poll token, and query the sign in poll API end point periodically. This will tell you when the sign in fails or succeeds.
We recommend querying this end point every 500-1000ms. If you query the poll token too frequently you may receive rate limit errors. If you query the same poll token before previous poll requests have completed you will always see an error. You should only re-query the poll token when the previous poll token response has completed and returned data.