Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalumickas committed Sep 24, 2020
1 parent 70e08dd commit dbe9290
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,23 @@ import { signInWithApple } from 'node-mac-sign-in-with-apple';

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

try {
const data = await signInWithApple(nativeWindow);
// {
// idToken: 'TOKEN',
// firstName: 'John',
// middleName: 'Chris',
// lastName: 'Doe',
// email: '[email protected]'
// }
} catch(err) {
// { code: 1000, message: 'Error message' }
}
})
```

> Note: Only on first login Apple returns email and user name, on other requests
> **Note:** Only on first login Apple returns email and user name, on other requests
> Apple returns only **idToken**

Expand All @@ -40,7 +52,7 @@ Add to entitlements.plist
```
## Thanks

Big thanks to [**@dynbit**](https://github.com/dynbit) for his help!
Big thanks to [**@dynbit**](https://github.com/dynbit) for his help and contribution!

## License

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vietaapp/node-mac-sign-in-with-apple",
"version": "0.2.0",
"version": "0.3.0",
"description": "A native module that allows you to Sign in with Apple in macOS",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit dbe9290

Please sign in to comment.