Weird issue since we are using the new edge sessio...
# ory-network
a
Weird issue since we are using the new edge sessions feature. We extract the identity’s OIDC credentials to update users metadata if they link another OIDC method. For some reason this information seems cached somehow, We ran the exact same code locally that runs on production and got the correct OIDC credentials
s
What exactly are you doing? What is the order of requests?
a
Copy code
Fetch session (whoami)

      list($response) = $this->toSessionWithHttpInfo($xSessionToken, $cookie);
        return $response;

=> Admin API call

$identity = $this->getIdentityWithHttpInfo($id, $includeCredential);
=> Get credentials
Copy code
$credentials = $identity->getCredentials();