Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/x

src/refresh-oauth-token.ts

12 lines · 448 B · TypeScript
import { refreshOauthToken } from './client.ts'
import type { XRefreshTokenParams } from './client.ts'

/**
 * Refresh and persist the selected X OAuth tokens through the host helper.
 * @example
 * import refreshOauthToken from 'kody:@kody/x/refresh-oauth-token'
 * const result = await refreshOauthToken()
 */
export default async function refreshOauthTokenEntrypoint(params: XRefreshTokenParams = {}) {
	return await refreshOauthToken(params)
}