# `Stripe.Services.AccountSessionService`
[🔗](https://github.com/jeffhuen/tiger_stripe/blob/main/lib/stripe/services/account_session_service.ex#L2)

ConnectEmbeddedMethodAccountSessionCreateMethodAccountSession

An AccountSession allows a Connect platform to grant access to a connected account in Connect embedded components.

We recommend that you create an AccountSession each time you need to display an embedded component
to your user. Do not save AccountSessions to your database as they expire relatively
quickly, and cannot be used more than once.

Related guide: [Connect embedded components](https://docs.stripe.com/connect/get-started-connect-embedded-components)

# `create`

```elixir
@spec create(Stripe.Client.t(), map(), keyword()) ::
  {:ok, term()} | {:error, Stripe.Error.t()}
```

Create an Account Session

Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
