Pesquisas recentes


Sem pesquisas recentes

Daniel Korsgaard's Avatar

Daniel Korsgaard

Entrou em 16 de out. de 2021

·

Última atividade em 16 de out. de 2021

Seguindo

0

Seguidores

0

Atividade total

2

Votos

0

Assinatura

1

VISÃO GERAL DA ATIVIDADE

Atividade mais recente por Daniel Korsgaard

Daniel Korsgaard comentou,

ComentárioSingle 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. 

Exibir comentário · Publicado 30 de ago. de 2021 · Daniel Korsgaard

0

Seguidores

0

Votos

0

Comentários