Skip to content

Get App Check Token Using Web getToken method in Mobile Application #9

@siranjeevimurugesan

Description

@siranjeevimurugesan

Instead of getting the token through Capacitor Firebase App Check, we attempt to obtain the App Check token using the web Firebase getToken method in a mobile application.

However, we encounter the error 'TypeError: Cannot read properties of undefined (reading 'name')'

private appCheck: AppCheck = Inject(AppCheck);

    if (data) {
                return from(getToken(this.appCheck)).pipe(
                switchMap((tokenResult: any) => {
               _appCheckToken = tokenResult.token;
                return of({ token: _appCheckToken });
           })
        );
    } 

image

Provide a solution on how to get the App Check token using the Firebase getToken method in a mobile application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions