Skip to content
← Public packages

@kody/x

Look up X users and tweets, search recent posts, and preview guarded posts through saved OAuth.

FollowFork

Files

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)
}