Skip to content

Commit

Permalink
lets pass app access token as explicit param in DBL polling endpoint
Browse files Browse the repository at this point in the history
Summary: later in the the stack we will try to override "application access token" for reauth flow on Portal, so making this explicit change to pass proper application access token (existing one) in the same way as we do for DBL code requesting

Differential Revision: D36620085

fbshipit-source-id: 905b6da79daadfff721d46faeb38cdd0d75d337c
  • Loading branch information
Roman Shakhmanaev authored and facebook-github-bot committed May 25, 2022
1 parent 7526758 commit dd2cb93
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ open class DeviceAuthDialog : DialogFragment() {
get() {
val parameters = Bundle()
parameters.putString("code", currentRequestState?.requestCode)
val accessToken = Validate.hasAppID() + "|" + Validate.hasClientToken()
parameters.putString(GraphRequest.ACCESS_TOKEN_PARAM, accessToken)
return GraphRequest.newPostRequestWithBundle(
null,
DEVICE_LOGIN_STATUS_ENDPOINT,
Expand Down

0 comments on commit dd2cb93

Please sign in to comment.