[**@gram-ai/elements v1.33.0**](../README.md)

***

[@gram-ai/elements](../globals.md) / GetSessionFn

# Type Alias: GetSessionFn()

> **GetSessionFn** = (`init`) => `Promise`\<`string`\>

Function to retrieve the session token from the backend endpoint.
Override this if you have mounted your session endpoint at a different path.

## Parameters

### init

#### projectSlug

`string`

## Returns

`Promise`\<`string`\>
