[keycloak-user] After reloading web page I loose the token.
Ioan Eugen Stan
stan.ieugen at gmail.com
Sat Jun 6 04:38:43 EDT 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hello Juan,
It is expected. You are reloading your app. Try persisting the token in local storage.
Regards,
On 6 iunie 2015 04:07:02 EEST, Juan Diego <juandiego83 at gmail.com> wrote:
>I am trying to understando how to use keycloak.js in a web app with
>angular, I created a button that calls keycloak.login(); and it seems
>to
>work I am prompted with keycloaks login form, and it seems to work, I
>am
>able to retrieve my username and display it on my page. But when I
>refresh
>my page, it seems to loses the token. The idtoken is null or not
>defined.
>Here it is an example of my code, http://pastebin.com/W0ZHbtUW,
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>keycloak-user mailing list
>keycloak-user at lists.jboss.org
>https://lists.jboss.org/mailman/listinfo/keycloak-user
- --
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-----BEGIN PGP SIGNATURE-----
iQFOBAEBCAA4MRxJb2FuIEV1Z2VuIFN0YW4gKGlldWdlbikgPHN0YW4uaWV1Z2Vu
QGdtYWlsLmNvbT4FAlVysZIACgkQ7Qltk+7tR9qaLAf/ds46CpbiCVcmFdYwD6WI
mOi/hse+BegoweWrUa7aeKP9mH8sy6cRvPQ4aWYl6qOojmWwNPKE/modSx1B8qA0
+lCII0BmVsCJyhJXD88aY1bEITLYX/G768qhA/kZmWa9tyLCYgLq52q/maZa3OlH
0ZF/iZPrf1ASvnWZkriI9ZjBSMhA+RDYWdbvC0pwwiM2cOPhIlBipWdiiiuPJCtJ
bqAfKPtcn0G0F8P8ykQK1fk5rrjkfbK/shZ3R4bGU6/Q5Sj5a8s9E9Nw7Y9S/7ux
1HUsYXgl32+XE3oc2A0Ec4/McOJ5TNW9LGUc+ByJLL3QRcUO4VzKFxN0OeH+iVl/
Vg==
=WPo4
-----END PGP SIGNATURE-----
More information about the keycloak-user
mailing list