tokens-params ( oauth2 code -- params )


Vocabulary
oauth2

Inputs
oauth2an object
codean object


Outputs
paramsan object


Definition


: tokens-params ( oauth2 code -- params )
[
"code" ,, {
[ client-id>> "client_id" ,, ]
[ client-secret>> "client_secret" ,, ]
[ redirect-uri>> "redirect_uri" ,, ]
[ extra-params>> %% ]
} cleave "authorization_code" "grant_type" ,,
] { } make ;