0.1.2 • Published 4 years ago

native-apple-login v0.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

native-apple-login

installation

$ yarn add native-apple-login
$ cd ios
$ pod install

how to use

import AppleLogin from "native-apple-login";

const login = async () => {
    const result = await AppleLogin.login();
}

Apple Credential State Change Listener

import AppleLogin, {
  Events,
  EventNames,
  CredentialStateChangedResult,
} from 'native-apple-login';

export default function App() {
    const eventSubscription = React.useRef<EmitterSubscription | null>(null);

    React.useEffect(() => {
        eventSubscription.current = Events.addListener(
        EventNames.CredentialStateChanged,
            ({ state, error }: CredentialStateChangedResult) => {
                if (state === "revoked") {
                    logout();
                }
            }
        );
        return () => {
            if (eventSubscription && eventSubscription.current) {
                eventSubscription.current.remove();
            }
        };
    }, []);

    const fetchList = async () => {
        NaitveAppleLogin.getCredentialState(await AsyncStorage.getUserAppleId());
        await getList();
    }
}
absolute-pathacorn-globalsabort-controllerJSONStreamababacorn-jsxacceptsacorn-walkacornadd-streamansi-escapesaggregate-erroransi-colorsanserajvansi-regexansi-stylesansi-alignansi-fragmentsarr-diffansi-cyananymatcharr-flattenarr-unionansi-redansi-grayansi-wrapargparsearray-ifyarray-includesarray-find-indexarray-filterarray-reducearray-uniqueasaparray-mapassign-symbolsarray-unionarray.prototype.flatmaparray-slicearrifyasn1async-retryasyncat-least-nodeastral-regexatobassert-plusbabel-plugin-istanbulbabel-plugin-jest-hoistbabel-jestaws4babel-preset-current-node-syntaxbabel-eslintasynckitbabel-polyfillbabel-plugin-dynamic-import-nodebabel-preset-jestbaseaws-sign2babel-plugin-syntax-trailing-function-commasbabel-preset-fbjsbalanced-matchbabel-runtimebefore-after-hookbig-integerbase64-jsbcrypt-pbkdfbindingsbplist-parserboxenbracesbserbplist-creatorbuffer-fromcache-basebrowserslistbrace-expansionbrowser-process-hrtimebuiltinsbuffer-crc32cacheable-requestcamelcasecacheable-lookupcaller-callsitecamelcase-keysbytescaller-pathchalkchar-regexci-infocallsitescaselessclass-utilscapture-exitchardetclean-stackchangelog-filename-regexcaniuse-litecli-boxescli-widthcocollection-visitcliuicli-spinnersclone-responsecolor-namecli-cursorclonecollect-v8-coveragecolor-supportcombined-streamcomponent-emittercolor-convertcolorettecommandercommand-existscommondircompare-funccompare-versionscompressibleconcat-mapcompressionconnectconcat-streamconventional-changelogconventional-changelog-conventionalcommitsconventional-changelog-angularconventional-changelog-atomconfigstoreconventional-changelog-coreconventional-changelog-codemirrorconventional-changelog-jqueryconventional-changelog-emberconventional-changelog-preset-loaderconventional-changelog-expressconvert-source-mapconventional-changelog-eslintcopy-descriptorconventional-changelog-writerconventional-changelog-jshintconventional-recommended-bumpcross-spawncore-jscore-util-iscore-js-compatcssomcsstypecosmiconfigcreate-react-classcrypto-random-stringcssstyledargsdashdashdebugcurrently-unhandleddecode-uri-componentdecamelizedateformatdata-urlsdecamelize-keysdayjsdedentconventional-commits-parserdeep-extenddecompress-responseconventional-commits-filterdefine-propertydeepmergedecimal.jsdefine-propertiesdefer-to-connectdeep-isdelayed-streamdeldenodeifydepddefaultsdeprecated-objdiff-sequencesdetect-newlinedestroydeprecationdetect-repo-changelogdomexceptiondir-globdoctrineduplexer3emitteryend-of-streamemoji-regexecc-jsbnee-firstencodeurldot-propelectron-to-chromiumejsencodingenvinfoerrorhandlererror-exenquirerescape-string-regexpes-to-primitiveescaladees-abstractescape-goatescodegenescape-htmleslint-plugin-reacteslint-plugin-flowtypeeslint-plugin-jesteslint-plugin-eslint-commentseslint-plugin-relayeslint-utilseslint-plugin-react-native-globalseslint-plugin-react-nativeeslint-plugin-react-hooksesqueryeslint-visitor-keysesutilseslint-scopeesprimaestraverseespreeesrecurseetageventemitter3event-target-shimexpand-bracketsexpectexecaextglobexitextend-shallowexec-shexternal-editorfast-json-stable-stringifyextsprintffancy-logextendfast-deep-equalfast-difffast-levenshteinfast-globfb-watchmanfastqfbjsfbjs-css-varsfile-entry-cachefile-uri-to-pathfbjs-scriptsfind-upfill-rangefind-cache-dirfiguresfilelistfor-infinalhandlerfragment-cacheflattedflatflat-cachefind-versionsfseventsgensyncforever-agentfreshform-datafs-extraget-streamfs.realpathfunction-bindget-pkg-repofunctional-red-black-treeget-caller-filegetpassget-package-typeget-stdinget-valuegit-remote-origin-urlgit-upgh-gotgit-raw-commitsgit-url-parseglobalsgit-semver-tagsglobgitconfiglocalgraceful-fsgithub-usernamegotglobbyglob-parentgrowlyglobal-dirsgraphqlhas-flaghandlebarshashas-valueshar-schemahas-valuehar-validatorhas-symbolshard-rejectionhermes-profile-transformerhermes-enginehas-yarnhuman-signalshttp-cache-semanticshosted-git-infohtml-encoding-snifferhtml-escaperhttp-signaturehttp2-wrapperhttp-errorsiconv-liteimport-localignoreimurmurhashimport-cwdimage-sizeimport-frominflightinquireriniinheritsimport-lazyis-accessor-descriptorimport-freshindent-stringis-bufferinterpretis-data-descriptorinvariantipip-regexis-descriptoris-ciis-extendableinternal-slotis-callableis-arrayishis-directoryis-date-objectis-generator-fnis-dockeris-extglobis-finiteis-fullwidth-code-pointis-globis-git-dirtyis-numberis-installed-globallyis-git-repositoryis-interactiveis-npmis-plain-objectis-objis-negative-zerois-path-insideis-path-cwdis-potential-custom-element-nameis-plain-objis-regular-fileis-sshis-streamis-typedarrayis-windowsis-stringisarrayis-symbolisexeisobjectis-regexis-utf8is-text-pathistanbul-lib-coverageis-yarn-globalis-wslistanbul-lib-instrumentistanbul-lib-reportisstreamjest-clijest-changed-filesisomorphic-fetchistanbul-lib-source-mapsistanbul-reportsiteralljest-docblockjest-configjest-diffjest-eachjest-environment-nodejest-get-typejest-haste-mapjest-jasmine2jest-message-utiljest-mockjest-matcher-utilsjest-regex-utiljest-resolvejest-resolve-dependenciesjest-runnerjakejest-utiljest-snapshotjest-validatejest-runtimejest-environment-jsdomjest-leak-detectorjest-pnp-resolverjest-watcherjs-tokensjest-workerjsescjest-serializerjs-yamljsbnjsdomjsc-androidjetifierjson-bufferjson-stable-stringifyjson-schemajson-parse-better-errorsjson-parse-even-better-errorsjson-schema-traversejson5json-stringify-safekeyvkind-ofjsonifyjsonfilejsprimjson-stable-stringify-without-jsonifyjsonparsejsx-ast-utilslocate-pathlodashklawlines-and-columnslevenlatest-versionlodash._reinterpolatelodash.findlodash.ismatchlevenaryload-json-filekleurlodash.throttlelevnlodash.templatelodash.templatesettingslog-symbolsmakeerrorlru-cacheloud-rejectionlogkittylowercase-keysmap-cachemap-visitmerge-streammake-dirloose-envifymacos-releasemeowmap-objmetromerge2metro-babel-registermetro-cachemetro-babel-transformermetro-configlodash.sortbymetro-coremicromatchmetro-react-native-babel-transformermetro-minify-uglifymetro-resolvermimic-fnmetro-react-native-babel-presetmetro-source-mapmetro-symbolicatemimemetro-inspector-proxymixin-deepminimatchmime-typesmime-dbmimic-responsemin-indentminimistminimist-optionsmsnatural-comparenanomatchmkdirpmodify-valuesnode-int64nanmute-streamnice-trynode-fetchnegotiatornode-notifiernormalize-pathnode-stream-zipnode-modules-regexpnode-releasesnormalize-urlnpm-run-pathnumber-is-nanob1nullthrowsoauth-signobject-copynwsapiobject-assignnormalize-package-dataobject.assignobject.pickobject-keysobject-inspectobject-visitonetimeobject.entriesneo-asyncon-finishedobject.valueson-headersonceopenoptionatoropencollective-postinstalloptionsp-each-seriesos-tmpdirorap-limitp-locateos-namep-tryp-cancelablep-finallyp-mapobject.fromentriesparse-node-versionparse-jsonparent-moduleparse-github-repo-urlparse-pathpackage-jsonparse-urlpascalcaseparseurlpath-existsparse5picomatchpath-is-absoluteperformance-nowpath-parsepath-keypkg-dirpath-typepiratespifypinkieposix-character-classesplease-upgrade-nodepinkie-promiseplistpretty-formatplugin-errorpromiseprepend-fileprop-typesprogressprelude-lspumpprepend-httpprocess-nextick-argsprotocolspromptspslprettier-linter-helpersqspseudomappupaqquick-lrureact-devtools-corereact-ispunycoderange-parserregeneratereact-refreshreadable-streamregenerator-runtimercread-pkg-upread-pkgregenerator-transformregex-notregexpu-coreregenerate-unicode-propertiesregexp.prototype.flagsregjsgenredentrechoirregjsparserregistry-auth-tokenremove-trailing-separatorrepeat-elementrepeat-stringregistry-urlrequestrequire-directoryrequest-promise-corerequire-main-filenameresolveregexppresolve-cwdresolve-fromrepeatingrequest-promise-nativeresolve-urlresolve-alpnresponselikeretresolve-globalrestore-cursorresolve-pkgreusifyretryrsvprimrafrun-asyncsafe-regexsafe-bufferrx-lite-aggregatesrx-literun-parallelsemverschedulersafer-bufferrxjssaxsaneset-blockingsemver-compareset-valuesendsemver-diffsemver-regexsaxesserialize-errorserve-staticsetimmediateshebang-regexsignal-exitshell-quoteslashshebang-commandside-channelsetprototypeofshelljssisteransisnapdragon-nodesnapdragon-utilsnapdragonsource-mapsource-map-resolvesource-map-supportslice-ansisource-map-urlsimple-plistslidespdx-correctsplit-stringshellwordsstack-utilssplitspdx-exceptionsspdx-expression-parsestatic-extendspdx-license-idssprintf-jsstring-lengthsshpkstacktrace-parserstatusessplit2stealthy-requirestream-buffersstrip-ansistrip-final-newlinestring_decoderstring-widthstring.prototype.matchallsupports-colorstrip-bomstring.prototype.trimstartstrip-eofstrip-json-commentssupports-hyperlinkssudo-promptstring.prototype.trimendstrip-indentterminal-linksymbol-observablesymbol-treetablethroattemptext-extensionstext-tableterm-sizetmplthroughtest-excludethrough2to-object-pathto-fast-propertiestmpto-readable-streamtime-stamptough-cookietoidentifiertr46tslibto-regex-rangetype-detecttrim-off-newlinestsutilstypedarray-to-buffertrim-newlinestunnel-agenttype-festtype-checktweetnacltypedarrayunicode-canonical-property-names-ecmascriptunicode-match-property-ecmascriptunicode-match-property-value-ecmascriptunicode-property-aliases-ecmascriptuglify-jsunion-valueto-regexunset-valueua-parser-jsultronuglify-esunique-stringurixunpipeuseurl-joinuniversalifyuniversal-user-agenturl-parse-laxuri-jsupdate-notifieruse-subscriptionutil-deprecateutils-mergev8-compile-cachevalidate-npm-package-licensev8-to-istanbulvalidate-npm-package-nameuuidvaryverrorwalkervlqw3c-hr-timewcwidthwhichwhich-modulew3c-xmlserializerwebidl-conversionswhatwg-fetchwhatwg-encodingwhatwg-mimetypewhatwg-urlwindows-releasewindow-sizewrappywrite-file-atomicwidest-linewhich-pm-runsword-wrapwrap-ansiwswordwrapxcodexdg-basedirxmlcharsxmldocxmlbuildery18nxml-name-validatorwritexmldomyargsyargs-parserxpipextendyamlyallist
0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago