Skip to content

Commit

Permalink
Add more to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalumickas committed Sep 23, 2020
1 parent 2212915 commit 6c96a50
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# node macOS Sign in With Apple

## Usage with Electron

Add to main process

```js
import { signInWithApple } from 'node-mac-sign-in-with-apple';

ipcMain.on('sign-in-with-apple', async () => {
const nativeWindow = mainWindow.getNativeWindowHandle();
signInWithApple(nativeWindow);
})
```

Add to entitlements.plist

Expand Down

0 comments on commit 6c96a50

Please sign in to comment.