Is it possible to get the current user OIDC crende...
# ory-copilot
p
Is it possible to get the current user OIDC crendetials access_token, NOT the initial_access_token
m
@chilly-king-10285 Is it possible to get the current user OIDC crendetials access_token, NOT the initial_access_token @polite-toothbrush-42338
c
A message from kapa.ai
New message text here
p
This doesn’t return the correct tokens. As such we needed to update again our kratos-fork and put them in identity.traits. I don’t even understand why this is not common sense to have it made. The call to /profile is made anyway, why not just save the data…?
m
Hey @polite-toothbrush-42338 Are you looking for this https://github.com/ory/kratos/pull/2428 ? You do something with the access token from OIDC provider and this should be updated? Can you elaborate a bit more please?
p
Our custom provider gives additional information if you call their route with the access_token. So we are getting the token and calling in server side their api to get some data. The thing is that it’s not valid anymore. For the PR yes, something like this, would’ve saved me a lot of time.