---
reference:
  js:
    - key: loadSealedSession
      id: load_sealed_session
      url: /reference/authkit/session-helpers
      title: userManagement.loadSealedSession()
      parameters:
        - key: options
          type: object
          unwrap: true
          properties:
            - key: sessionData
              type: string
              description: (authentication.session_data)
            - key: cookiePassword
              type: string
              description: (authentication.cookie_password_unseal)
      returns:
        - key: anonymous
          type: object
          unwrap: true
          properties:
            - key: authenticate
              type: function
              description: Method to authenticate a user with the session cookie
            - key: refresh
              type: function
              description: Method to refresh the user's session
            - key: getLogOutUrl
              type: function
              description: Returns the log out URL
  ruby:
    - key: load_sealed_session
      id: load_sealed_session
      url: /reference/authkit/session-helpers
      title: UserManagement.load_sealed_session()
      parameters:
        - key: options
          type: object
          unwrap: true
          properties:
            - key: session_data
              type: string
              description: (authentication.session_data)
            - key: cookie_password
              type: string
              description: (authentication.cookie_password_unseal)
      returns:
        - key: anonymous
          type: object
          unwrap: true
          properties:
            - key: authenticate
              type: function
              description: Method to authenticate a user with the session cookie
            - key: refresh
              type: function
              description: Method to refresh the user's session
            - key: get_logout_url
              type: function
              description: Returns the log out URL
  python:
    - key: load_sealed_session
      id: load_sealed_session
      url: /reference/authkit/session-helpers
      title: user_management.load_sealed_session()
      parameters:
        - key: options
          type: object
          unwrap: true
          properties:
            - key: sealed_session
              type: string
              description: (authentication.session_data)
            - key: cookie_password
              type: string
              description: (authentication.cookie_password_unseal)
      returns:
        - key: anonymous
          type: object
          unwrap: true
          properties:
            - key: authenticate
              type: function
              description: Method to authenticate a user with the session cookie
            - key: refresh
              type: function
              description: Method to refresh the user's session
            - key: get_logout_url
              type: function
              description: Returns the log out URL
originalPath: >-
  .tmp-workos-clone/packages/docs/content/reference/authkit/session-helpers/load-sealed-session.mdx
---

## Load sealed session

Load the session by providing the sealed session and the cookie password.

<CodeBlock
  referenceId="load_sealed_session"
  title="Load sealed session"
  file="session-helpers-load-sealed-session"
/>
