Skip to content

App-check use with angular fire #2858

Closed
@febg11

Description

@febg11

Hi

I am trying to use firebase app check with my angular project. The docs say you need to do this

Add the following initialization code to your application, before you access any Firebase services

firebase.initializeApp({
  // Your firebase configuration object
});

const appCheck = firebase.appCheck();
// Pass your reCAPTCHA v3 site key (public key) to activate(). Make sure this
// key is the counterpart to the secret key you set in the Firebase console.
appCheck.activate('abcdefghijklmnopqrstuvwxy-1234567890abcd');

I cant seem to find an easy way of doing this. I have tried using APP_INITIALIZER AND accessing the native firebase js obect using declare var but neither have worked/

I am using angularfire 6.1.5

I am not even sure how to access it. I have also tried importing the newest version of the native firebase js library. This also didnt work.

Sorry if this doesnt meet the criteria its just so new and app-check is so vague nothing comes up when i search for it.

Any help is greatly appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions