And fetching them at reload is the problem. When the app loads initially it
gets a token. But after loading another module and refreshing the app it's
not following the same loading order. The last loaded module is trying
loading before the first module completes its run.

On Fri, Sep 25, 2015 at 4:37 AM Sander Elias <[email protected]> wrote:

> Hi Mark,
>
> That's not the way to solve this particular issue. There is more then one
> way to solve this. What is the best in your situation I can only guess. One
> solution is keep the tokens in localstorage. fetch them on reload of your
> app.
>
> Regards
> Sander
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "AngularJS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/angular/gOrlOKs6FFk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to