-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from trilitech/feat/web3-auth
SocialAuth Integration
- Loading branch information
Showing
23 changed files
with
1,528 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
// All of the Node.js APIs are available in the preload process. | ||
// It has the same sandbox as a Chrome extension. | ||
const { contextBridge } = require("electron"); | ||
const { contextBridge, ipcRenderer } = require("electron"); | ||
|
||
// As an example, here we use the exposeInMainWorld API to expose the browsers | ||
// and node versions to the main window. | ||
// They'll be accessible at "window.versions". | ||
process.once("loaded", () => { | ||
contextBridge.exposeInMainWorld("versions", process.versions); | ||
}); | ||
|
||
contextBridge.exposeInMainWorld("electronAPI", { | ||
onDeeplink: (callback) => ipcRenderer.on("deeplinkURL", callback), | ||
}); |
Oops, something went wrong.