This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(reg-fx | |
:apple-signin-fx | |
(fn [navigation] | |
(go (let [appleAuthRequestResponse | |
(<p! (.performRequest appleAuth | |
#js {:requestedOperation (.. appleAuth -Operation -LOGIN) | |
:requestedScopes [(.. appleAuth -Scope -Email) | |
(.. appleAuth -Scope -FULL_NAME)]}))])))) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JSON value '{ | |
nonceEnabled = 1; | |
requestedOperation = 1; | |
requestedScopes = ( | |
"<null>", | |
1 | |
); | |
}' of type NSMutableDictionary cannot be converted to ASAuthorizationAppleIDRequest * | |
+[RCTConvert(ASAuthorizationAppleIDRequest) ASAuthorizationAppleIDRequest:] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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)]})))])))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { appleAuth } from '@invertase/react-native-apple-authentication'; | |
async function onAppleButtonPress() { | |
// performs login request | |
const appleAuthRequestResponse = await appleAuth.performRequest({ | |
requestedOperation: appleAuth.Operation.LOGIN, | |
requestedScopes: [appleAuth.Scope.EMAIL, appleAuth.Scope.FULL_NAME], | |
}); | |
// get current authentication state for user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(->> (d/q '[:find (pull ?content [*]) | |
:in $ ?user-id-string | |
:where | |
[?user-id :user/id-string ?user-id-string] | |
[?content :content/user ?user-id] | |
(not [?content :content/deleted true]) | |
] (get-db) user-id-string) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2008-10-17", | |
"Statement": [ | |
{ | |
"Sid": "eb-ad78f54a-f239-4c90-adda-49e5f56cb51e", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::155404741487:role/aws-elasticbeanstalk-ec2-role" | |
}, | |
"Action": "s3:PutObject", |
NewerOlder