Reputation: 11
I have electron app which uses Angular-Token for Angular and Devise Token Auth for rails backend. Oauth sign in works fine in browser using api provided by Angular-Token. It creates a new window and returns an observable and window closes after authentication is complete.
this.tokenService.signInOAuth(
'github'
).subscribe(
res => console.log(res),
error => console.log(error)
);
I want to implement same functionality in electron app but the problem is this.tokenService.signInOAuth
open electron window which I assume is not secure and safe. How do I implement this functionality safely? Github desktop does this nicely by triggering my safari browser window and returning to electron app after auth is complete.
Upvotes: 1
Views: 455