Appearance
@line/bot-sdk • Docs
@line/bot-sdk / OAuth
Class: OAuth
Constructors
new OAuth()
new OAuth():
OAuth
Returns
Defined in
Methods
getChannelAccessTokenKeyIdsV2_1()
getChannelAccessTokenKeyIdsV2_1(
client_assertion
):Promise
<object
>
Parameters
• client_assertion: string
Returns
Promise
<object
>
key_ids
key_ids:
string
[]
Defined in
issueAccessToken()
issueAccessToken(
client_id
,client_secret
):Promise
<ChannelAccessToken
>
Parameters
• client_id: string
• client_secret: string
Returns
Promise
<ChannelAccessToken
>
Defined in
issueChannelAccessTokenV2_1()
issueChannelAccessTokenV2_1(
client_assertion
):Promise
<ChannelAccessToken
>
Parameters
• client_assertion: string
Returns
Promise
<ChannelAccessToken
>
Defined in
revokeAccessToken()
revokeAccessToken(
access_token
):Promise
<object
>
Parameters
• access_token: string
Returns
Promise
<object
>
Defined in
revokeChannelAccessTokenV2_1()
revokeChannelAccessTokenV2_1(
client_id
,client_secret
,access_token
):Promise
<object
>
Parameters
• client_id: string
• client_secret: string
• access_token: string
Returns
Promise
<object
>
Defined in
verifyAccessToken()
verifyAccessToken(
access_token
):Promise
<VerifyAccessToken
>
Parameters
• access_token: string
Returns
Promise
<VerifyAccessToken
>
Defined in
verifyIdToken()
verifyIdToken(
id_token
,client_id
,nonce
?,user_id
?):Promise
<VerifyIDToken
>
Parameters
• id_token: string
• client_id: string
• nonce?: string
• user_id?: string
Returns
Promise
<VerifyIDToken
>