Title: angular-devise Auth not working until page refresh · Issue #117 · cloudspace/angular_devise · GitHub
Open Graph Title: angular-devise Auth not working until page refresh · Issue #117 · cloudspace/angular_devise
X Title: angular-devise Auth not working until page refresh · Issue #117 · cloudspace/angular_devise
Description: I'm using angular-devise and I have the following service that checks whether the user is logged or not isAuthenticated: function ($state, Auth) { Auth.currentUser().then(function (){ console.log("user is logged"); }, function(error) { $...
Open Graph Description: I'm using angular-devise and I have the following service that checks whether the user is logged or not isAuthenticated: function ($state, Auth) { Auth.currentUser().then(function (){ console.log("...
X Description: I'm using angular-devise and I have the following service that checks whether the user is logged or not isAuthenticated: function ($state, Auth) { Auth.currentUser().then(function (){ console.l...
Opengraph URL: https://github.com/cloudspace/angular_devise/issues/117
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"angular-devise Auth not working until page refresh","articleBody":"I'm using angular-devise and I have the following service that checks whether the user is logged or not\n\n```\n isAuthenticated: function ($state, Auth) {\n\n Auth.currentUser().then(function (){\n console.log(\"user is logged\");\n }, function(error) {\n $state.go('home',{});\n console.log(\"user is not logged\");\n })\n```\n\nThe problem is when I log the user on the server side it keeps returning that he's not logged in until I refresh the page. Then, after the refersh, it says that the user is logged as expected.\n\nWhat am I missing here? Thank you!\n","author":{"url":"https://github.com/Sharespot","@type":"Person","name":"Sharespot"},"datePublished":"2016-10-21T18:14:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/117/angular_devise/issues/117"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:932d1eb2-f0d1-7223-9c05-503f0e9a2c4e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8776:2053C6:307A29:450AA7:6A59D9FE |
| html-safe-nonce | 48cbe824ef924c440a927de367997df38979aaf13429410af17aad9dd10e418f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Nzc2OjIwNTNDNjozMDdBMjk6NDUwQUE3OjZBNTlEOUZFIiwidmlzaXRvcl9pZCI6IjQwMjQyMzE4OTk2ODIxNjcyOTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9762eb8b591cbfa5ad6a073103d278c1966b84fc228120e528077c7429954b9c |
| hovercard-subject-tag | issue:184540603 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudspace/angular_devise/117/issue_layout |
| twitter:image | https://opengraph.githubassets.com/54611132fb8435a78dc53832b4d4f915d9db37d965ee3ac8e95a04c9b477afba/cloudspace/angular_devise/issues/117 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/54611132fb8435a78dc53832b4d4f915d9db37d965ee3ac8e95a04c9b477afba/cloudspace/angular_devise/issues/117 |
| og:image:alt | I'm using angular-devise and I have the following service that checks whether the user is logged or not isAuthenticated: function ($state, Auth) { Auth.currentUser().then(function (){ console.log("... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Sharespot |
| hostname | github.com |
| expected-hostname | github.com |
| None | ba3976babb66479b1c943a8edc0777d96157da48fadc0161f9ddb219deee8353 |
| turbo-cache-control | no-preview |
| go-import | github.com/cloudspace/angular_devise git https://github.com/cloudspace/angular_devise.git |
| octolytics-dimension-user_id | 26331 |
| octolytics-dimension-user_login | cloudspace |
| octolytics-dimension-repository_id | 15460221 |
| octolytics-dimension-repository_nwo | cloudspace/angular_devise |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 15460221 |
| octolytics-dimension-repository_network_root_nwo | cloudspace/angular_devise |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bfacf98c3b7ad151665d6ddd216469389872b251 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width