Skip to content

Instantly share code, notes, and snippets.

@zendevil
Created April 9, 2021 08:15
Show Gist options
  • Save zendevil/9b6a6f7a65351ead4cac5759eb051cdd to your computer and use it in GitHub Desktop.
Save zendevil/9b6a6f7a65351ead4cac5759eb051cdd to your computer and use it in GitHub Desktop.
appleAuth cljs
(reg-fx
:apple-signin-fx
(fn [navigation]
(go (let [appleAuthRequestResponse
(<p! (.performRequest appleAuth
(clj->js
{:requestedOperation (.. appleAuth -Operation -LOGIN)
:requestedScopes [(.. appleAuth -Scope -Email)
(.. appleAuth -Scope -FULL_NAME)]})))]))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment