-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ChannelAccessToken client doesn't have to require channel access token #597
Changes from 1 commit
2172d20
5be5091
5473dce
72ac795
8a2b84d
7866454
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,17 +86,23 @@ export class LineModuleAttachClient { | |
brandType?: string, | ||
): Promise<AttachModuleResponse> { | ||
const formParams = { | ||
grantType: grantType, | ||
grant_type: grantType, | ||
code: code, | ||
redirectUri: redirectUri, | ||
codeVerifier: codeVerifier, | ||
clientId: clientId, | ||
clientSecret: clientSecret, | ||
redirect_uri: redirectUri, | ||
code_verifier: codeVerifier, | ||
client_id: clientId, | ||
client_secret: clientSecret, | ||
region: region, | ||
basicSearchId: basicSearchId, | ||
basic_search_id: basicSearchId, | ||
scope: scope, | ||
brandType: brandType, | ||
brand_type: brandType, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Woot There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We discussed this internally, I'll submit change as other PR. |
||
}; | ||
// Remove properties with undefined or empty values | ||
Object.keys(formParams).forEach((key: keyof typeof formParams) => { | ||
if (formParams[key] === undefined || formParams[key] === "") { | ||
delete formParams[key]; | ||
} | ||
}); | ||
|
||
const res = this.httpClient.postForm<AttachModuleResponse>( | ||
"/module/auth/v1/token", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this change included in this commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me remove this~