Skip to content

No header with standalone components #770

@ArgCedric

Description

@ArgCedric

Checklist

  • I have looked into the Readme and Examples, and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

I use angular 15 and standalone components, especially for the app.component, so I don't have an app.module.
I added I JwtModule in the main.ts. There is no error, but nothing happens and the "Authorization" header is not visible

I use ionic 7, (angular 15) with capacitor 4 and "@auth0/angular-jwt": "^5.1.2",

Reproduction

content of main.ts file

[...]
function test(){
    return 'ThisIsMyToken'
}

const jwtConfig: JwtConfig = {
    tokenGetter: test,
    allowedDomains: [environment.endpoint],
};

bootstrapApplication(AppComponent, {
    providers: [
        [...]
        importProvidersFrom(
            [...]
            JwtModule.forRoot({config: jwtConfig})
        ),
        [...]
    ],
});

Additional context

No response

angular-jwt version

5.1.2

Angular version

15

Which browsers have you tested in?

Chrome, Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions