用户登录后,授予权限,然后重定向回我的应用程序。我有这样的东西
case RECEIVE_CONTROL_STATUS_UPDATE:
let findItem = state.controls.find(a=>a.index===action.payload.index);
let filtered = state.controls.filter(a=>a.index!==action.payload.index);
let updateState = [filtered,findItem];
return {
...state,constrols: updatedState
}
创建用户帐户只需要什么,但是OAuth流程尚未完成。对于正常流程,我们将使用该代码从{"state"=>"xxx","code"=>"yyyy","id_token"=>"zzzz","user"=>"{
....
}"}
https://developer.apple.com/documentation/signinwithapplerestapi/generate_and_validate_tokens
我的问题是,我应该这样做吗?看来对目前的局势没有任何价值。