Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 420 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 420 Bytes

node macOS Sign in With Apple

Usage with Electron

Add to main process

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

<key>com.apple.developer.applesignin</key>
<array>
  <string>Default</string>
</array>