Skip to content

@line/bot-sdkDocs


@line/bot-sdk / OAuth

Class: OAuth

Constructors

new OAuth()

new OAuth(): OAuth

Returns

OAuth

Defined in

lib/client.ts:837

Methods

getChannelAccessTokenKeyIdsV2_1()

getChannelAccessTokenKeyIdsV2_1(client_assertion): Promise<object>

Parameters

client_assertion: string

Returns

Promise<object>

key_ids

key_ids: string[]

Defined in

lib/client.ts:894


issueAccessToken()

issueAccessToken(client_id, client_secret): Promise<ChannelAccessToken>

Parameters

client_id: string

client_secret: string

Returns

Promise<ChannelAccessToken>

Defined in

lib/client.ts:841


issueChannelAccessTokenV2_1()

issueChannelAccessTokenV2_1(client_assertion): Promise<ChannelAccessToken>

Parameters

client_assertion: string

Returns

Promise<ChannelAccessToken>

Defined in

lib/client.ts:883


revokeAccessToken()

revokeAccessToken(access_token): Promise<object>

Parameters

access_token: string

Returns

Promise<object>

Defined in

lib/client.ts:852


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

lib/client.ts:904


verifyAccessToken()

verifyAccessToken(access_token): Promise<VerifyAccessToken>

Parameters

access_token: string

Returns

Promise<VerifyAccessToken>

Defined in

lib/client.ts:856


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>

Defined in

lib/client.ts:862