Skip to content

Not possible to dynamically set apiBase #475

@quentinbt

Description

@quentinbt

I'm submitting a...

  • Regression (a behavior that used to work and stopped working in a new release)
  • Bug report
  • Performance issue
  • Feature request
  • Documentation issue or request
  • Other... Please describe:

Current behavior

Its not possible to change the apiBase from AngularTokenService via the init method as before

What is the motivation / use case for changing the behavior?

I'm using angular-token with rails devise auth + apartment, so my subdomain (tenant) from the apiBase might change
my frontend and backend are not on the same domain origin so without the init method from tokenService its not possible to dynamically change the subdomain (and query another schema than the one init in appModule)

Environment

Angular-Token version: 6.0.2
Angular version: 6.1.6

Bundler

  • Angular CLI (Webpack)
  • Webpack
  • SystemJS

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