0

I was wondering if I could swap the stores somewhere in an initializer. The thing is, I want to check the window.navigator object for something, and decide which store ember-simple-auth should use.

Thanks.

tehmaestro
  • 1,010
  • 2
  • 11
  • 21

1 Answers1

1

You can do that in an initializer that runs before the 'simple-auth' initializer and modifies the app's ENV (ENV['simple-auth'].store is the value you'd want to set).

marcoow
  • 4,062
  • 1
  • 14
  • 21
  • Hi, how can I do the same thing with ESA 1.0 ? I cannot find any documentation on the configuration options of the new addon – tehmaestro May 07 '16 at 16:21
  • Cancel my above comment, I found good information here https://github.com/simplabs/ember-simple-auth/pull/602 – tehmaestro May 07 '16 at 16:34