How to get RefreshToken

I use method:
((User) currentAuthentication.getUser()).getDelegate().getIdToken().getTokenValue()
for get new token, but when token expired, i cannot get new token, like that:

image

How to get new token when old token expired?
Thanks!

1 Like