In my understanding, that’s how to get authorized (using the NodeJS lib):
- Call auth.genAuthUri: it will return an URL like “safe-auth:AAABC2387…”;
- Open this URL on SafeBrowser (can be programmatically done with an “open” system call);
- SafeBrowser will return on terminal an response string;
- Call fromAuthURI passing the response string as argument;
Problem is that asking to the user to copy/paste the response string is not practical.
Is there a way to be authorized without asking the user to copy and paste strings?