I've got an angular1 Application which uses auth0.js to authenticate. I want to store the token in my tokenService when my app is recieving the callback from auth0.
How can i create an ui.router state matching the url so that my resolve can proccess the request and fetch additional data?
$stateProvider
.state('RecieveAuth', {
url: "",
resolve: tokenresolve,
controller: function($tate){
$state.go("MainSite");
},
data: { requirelanguage: true, requireLogin: true },
})
does not work, And if i use "/" as an url it does not match "#accesstoken="
I already tried to do the processing in run, but in this version i don't know how to keep the controllers waiting until my http call completed.
Any help is greatly appreciated.