1 line
6.9 KiB
JSON
1 line
6.9 KiB
JSON
{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"performAuthentication"},{"kind":"text","text":"("},{"kind":"externalParam","text":"for"},{"kind":"text","text":" "},{"kind":"internalParam","text":"auth"},{"kind":"text","text":": "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftKit\/documentation\/SwiftKit\/Authentication","preciseIdentifier":"s:8SwiftKit14AuthenticationV","text":"Authentication"},{"kind":"text","text":", "},{"kind":"externalParam","text":"reason"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":", "},{"kind":"externalParam","text":"completion"},{"kind":"text","text":": "},{"kind":"attribute","text":"@escaping"},{"kind":"text","text":" "},{"kind":"typeIdentifier","identifier":"doc:\/\/SwiftKit\/documentation\/SwiftKit\/AuthenticationService\/AuthCompletion","preciseIdentifier":"s:8SwiftKit21AuthenticationServiceP14AuthCompletiona","text":"AuthCompletion"},{"kind":"text","text":")"}],"languages":["swift"],"platforms":["iOS"]}]},{"kind":"content","content":[{"anchor":"discussion","level":2,"type":"heading","text":"Discussion"},{"type":"paragraph","inlineContent":[{"type":"text","text":"This is a way to bypass any particular rules and states"},{"type":"text","text":" "},{"type":"text","text":"of the service and can be used to e.g. mock ."}]}]}],"schemaVersion":{"major":0,"minor":2,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/swiftkit\/localauthenticationservice\/performauthentication(for:reason:completion:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/SwiftKit\/documentation\/SwiftKit\/LocalAuthenticationService\/performAuthentication(for:reason:completion:)","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"Authenticate the user for a certain `` authentication type,"},{"type":"text","text":" "},{"type":"text","text":"regardless of if this service can authenticate the user"},{"type":"text","text":" "},{"type":"text","text":"for the provided authentication type or not."}],"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"performAuthentication"},{"kind":"text","text":"("},{"kind":"externalParam","text":"for"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Authentication","preciseIdentifier":"s:8SwiftKit14AuthenticationV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"reason"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":", "},{"kind":"externalParam","text":"completion"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"AuthCompletion","preciseIdentifier":"s:8SwiftKit21AuthenticationServiceP14AuthCompletiona"},{"kind":"text","text":")"}],"title":"performAuthentication(for:reason:completion:)","roleHeading":"Instance Method","role":"symbol","symbolKind":"method","externalID":"s:8SwiftKit26LocalAuthenticationServiceC07performD03for6reason10completionyAA0D0V_SSys6ResultOyyts5Error_pGctF","modules":[{"name":"SwiftKit"}]},"hierarchy":{"paths":[["doc:\/\/SwiftKit\/documentation\/SwiftKit","doc:\/\/SwiftKit\/documentation\/SwiftKit\/LocalAuthenticationService"]]},"references":{"doc://SwiftKit/documentation/SwiftKit/LocalAuthenticationService/performAuthentication(for:reason:completion:)":{"role":"symbol","title":"performAuthentication(for:reason:completion:)","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"performAuthentication"},{"kind":"text","text":"("},{"kind":"externalParam","text":"for"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Authentication","preciseIdentifier":"s:8SwiftKit14AuthenticationV"},{"kind":"text","text":", "},{"kind":"externalParam","text":"reason"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":", "},{"kind":"externalParam","text":"completion"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"AuthCompletion","preciseIdentifier":"s:8SwiftKit21AuthenticationServiceP14AuthCompletiona"},{"kind":"text","text":")"}],"abstract":[{"type":"text","text":"Authenticate the user for a certain `` authentication type,"},{"type":"text","text":" "},{"type":"text","text":"regardless of if this service can authenticate the user"},{"type":"text","text":" "},{"type":"text","text":"for the provided authentication type or not."}],"identifier":"doc:\/\/SwiftKit\/documentation\/SwiftKit\/LocalAuthenticationService\/performAuthentication(for:reason:completion:)","kind":"symbol","type":"topic","url":"\/documentation\/swiftkit\/localauthenticationservice\/performauthentication(for:reason:completion:)"},"doc://SwiftKit/documentation/SwiftKit/AuthenticationService/AuthCompletion":{"role":"symbol","title":"AuthenticationService.AuthCompletion","fragments":[{"kind":"keyword","text":"typealias"},{"kind":"text","text":" "},{"kind":"identifier","text":"AuthCompletion"}],"abstract":[],"identifier":"doc:\/\/SwiftKit\/documentation\/SwiftKit\/AuthenticationService\/AuthCompletion","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"AuthCompletion"}],"url":"\/documentation\/swiftkit\/authenticationservice\/authcompletion"},"doc://SwiftKit/documentation/SwiftKit/LocalAuthenticationService":{"role":"symbol","title":"LocalAuthenticationService","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"LocalAuthenticationService"}],"abstract":[{"type":"text","text":"This service uses "},{"type":"codeVoice","code":"LocalAuthentication"},{"type":"text","text":" to authenticate the"},{"type":"text","text":" "},{"type":"text","text":"current user."}],"identifier":"doc:\/\/SwiftKit\/documentation\/SwiftKit\/LocalAuthenticationService","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"LocalAuthenticationService"}],"url":"\/documentation\/swiftkit\/localauthenticationservice"},"doc://SwiftKit/documentation/SwiftKit/Authentication":{"role":"symbol","title":"Authentication","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Authentication"}],"abstract":[{"type":"text","text":"This struct represents a unique authentication type."}],"identifier":"doc:\/\/SwiftKit\/documentation\/SwiftKit\/Authentication","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"Authentication"}],"url":"\/documentation\/swiftkit\/authentication"},"doc://SwiftKit/documentation/SwiftKit":{"role":"collection","title":"SwiftKit","abstract":[{"type":"text","text":"SwiftKit adds extra functionality to the Swift framework, like extensions to native types, utilites, services etc."}],"identifier":"doc:\/\/SwiftKit\/documentation\/SwiftKit","kind":"symbol","type":"topic","url":"\/documentation\/swiftkit"}}} |