最近搜索
没有最近搜索

Daniel Korsgaard
已加入2021年10月16日
·
最后活动2021年10月16日
关注
0
关注者
0
活动总数
2
投票
0
订阅
1
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Daniel Korsgaard
Daniel Korsgaard 进行了评论,
评论Single 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.
查看评论 · 已于 2021年8月30日 发布 · Daniel Korsgaard
0
关注者
0
投票
0
评论