Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

reconnect

Environment Imports

import { reconnect } from '@ivem/kit'
import { useReconnect } from '@ivem/kit-react'
import { useReconnect } from '@ivem/kit-vue'

Usage

import { reconnect } from '@ivem/kit'
 
const session = await reconnect(config)

Parameters

  • config: Config

Return Type

  • Promise<{ accounts: readonly string[]; chainId: string } | null>

Examples

const restored = await reconnect(config)
if (!restored) console.log('No authorized session')

Related