BiometricAuthenticationSession
public struct BiometricAuthenticationSession
This struct combines AuthenticationData, the IDPChallengeSession and a signer to create a signature for using while authentication against the idp.
-
Initializer
Declaration
Swift
public init(authenticationData: AuthenticationData, originalChallenge: IDPChallengeSession)
Parameters
authenticationData
Wrapped
AuthenticationData
originalChallenge
Wrapped
IDPChallengeSession
-
Create the signed IDPChallenge response JWT
Declaration
Swift
public func sign( with signer: JWTSigner, alg: JWT.Algorithm = .secp256r1, jsonEncoder _: JSONEncoder = JSONEncoder() ) -> AnyPublisher<SignedAuthenticationData, Swift.Error>
Parameters
signer
JWT Signature provider
alg
signature algorithm. Default: “secp256r1”
Return Value
signed JWT