Skip to content

Instantly share code, notes, and snippets.

@zendevil
Created April 9, 2021 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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