FirebaseAppCheck Framework Reference

AppAttestProvider

class AppAttestProvider : NSObject, AppCheckProvider

Firebase App Check provider that verifies app integrity using the DeviceCheck API. This class is available on all platforms for select OS versions. See https://firebase.google.com/docs/ios/learn-more for more details.

  • Undocumented

  • The default initializer.

    Declaration

    Swift

    init?(app: FIRApp)

    Parameters

    app

    A FirebaseApp instance.

    Return Value

    An instance of AppAttestProvider if the provided FirebaseApp instance contains all required parameters.

  • Returns a new Firebase App Check token.

    Declaration

    Swift

    func getToken() async throws -> FIRAppCheckToken

    Parameters

    handler

    The completion handler. Make sure to call the handler with either a token or an error.

  • Returns a new Firebase App Check token. When implementing this method for your custom provider, the token returned should be suitable for consumption in a limited-use scenario. If you do not implement this method, the getTokenWithCompletion will be invoked instead whenever a limited-use token is requested.

    Declaration

    Swift

    func getLimitedUseToken() async throws -> FIRAppCheckToken

    Parameters

    handler

    The completion handler. Make sure to call the handler with either a token or an error.