Recherches récentes


Pas de recherche récente

Daniel Korsgaard's Avatar

Daniel Korsgaard

Adhésion le 16 oct. 2021

·

Dernière activité le 16 oct. 2021

Suivis

0

Abonnés

0

Activité totale

2

Votes

0

Abonnement

1

APERÇU DES ACTIVITÉS

Dernière activité effectuée par Daniel Korsgaard

Daniel Korsgaard a ajouté un commentaire,

CommentaireSingle sign-on

Sorry to bring this up again, I have an issue when trying to match the user_fields in PHP. The User does not get updated / created with the custom fields filled. 


$jwtToken = \Firebase\JWT\JWT::encode([
'name' => $principal->getName(),
'email' => $principal->getEmail(),
'external_id' => $principal->getId(),
'iat' => (int) $now->format("U"),
'exp' => (int) $expire->format("U"),
'user_fields' => json_encode(["user_id" => $principal->getId(), 'newtest' => 'should have some value'])
], 'secret', 'HS256');

I'm not sure if I have misinterpreted this part. But when using the web widget, this seems like the only plausible way to create/update a user without calling the API. 

Afficher le commentaire · Publication le 30 août 2021 · Daniel Korsgaard

0

Abonnés

0

Votes

0

Commentaire