Reputation: 49
Working on a sketch plugin which can fetch/collect data from an illustration hosting platform based on user authentication.
I am using SKPM with sketch-module-web-view
.
Currently we have Google & Facebook authentication methods for the website. We need the same in sketch plugin to maintain the user session and required functionality.
Please suggest any documentation/tutorial out there.
PS: I have read almost every documentation available in sketch official website and other forums.
Reference - Please check Shutterstock & gallery.io sketch plugins and others.
Thanks
Upvotes: 4
Views: 251
Reputation: 15797
I don't know exactly which kind of authentication method you used to authenticate users through Google & Facebook on your website, I guess OAuth2. Using OAuth2 it is impossible to authenticate users on a local running app, since OAuth2 strictly requires a callback URL which can't be configured on a local running app.
Since you are using sketch-module-web-view
, is not enough to make user land on your website login URL?
const BrowserWindow = require('sketch-module-web-view');
const win = new BrowserWindow();
// load your website login URL
win.loadURL('https://your_website.com/login');
Hope this helps.
Upvotes: 0