Xerial
  • Intro
    • ⚡Introduction
    • 🏁Getting Started
    • â„šī¸Before We Start: Important
  • 👷Build
    • Build Your Account
    • Create Your Assets
    • Inventory
    • Marketplace
    • User Flow
    • Best Practices
      • Attribute Guide
        • Attribute Use Cases
  • â˜„ī¸Xerial APIs
    • đŸ—ī¸API Authorization
    • 🛅Wallet API
      • Getting Started
      • Custodial Wallets
        • Create User
        • Create Wallet
        • Get Wallets
      • Wallet Management
        • Get Chain Native Currency Balance
        • Get Supported ERC20 Tokens Balances
        • Get Project Inventory
      • Transaction Proccessing
        • Transfer Xerial NFT
        • Transfer Chain Native Currency
        • Transfer ERC20 Token
        • Primary Purchase Xerial NFT
        • Secondary Purchase
        • List Xerial NFT
        • Delist Xerial NFT
        • Execute Custom Transaction
      • Errors Handling
        • Authentication Errors
        • Wallet Management Errors
        • Transaction Proccessing Errors
    • 🛒Marketplace API
      • Get Listed NFTs
      • Get Community Listed Items
      • Get Collections
      • Get Project Data
    • đŸ–ŧī¸NFT API
      • NFT Drop
    • 🌐Xerial Global Wallets
      • Get User Wallet Info
      • Get Global Inventory
      • User Authorization
      • Logout
  • đŸ› ī¸Xerial SDK
    • Wallet SDK
  • đŸŽī¸Gaming Toolkit
    • đŸ•šī¸Xerial Unity SDK Guide
      • âŦ‡ī¸Installation
      • âš™ī¸Configuration
      • Xerial Services
        • Set Up Xerial Services
        • Service Managers
          • Session Manager
          • Wallet Manager
            • UserData Class
              • Account Class
              • Wallet Class
              • Creating UserData Class
          • Inventory Manager
            • NFTs
              • Metadata
              • Attributes
            • NFTInventory Class
            • Creating NFT Inventory
          • MarketPlace Manager
    • Unreal Engine SDKs
Powered by GitBook
On this page
  • SessionData Class
  • Properties
  1. Gaming Toolkit
  2. Xerial Unity SDK Guide
  3. Xerial Services
  4. Service Managers

Session Manager

The SessionManager class is within the Xerial Unity SDK responsible for managing user sessions. Sessions are essential for maintaining user authentication and authorization states.

The primary purpose of the SessionManager is to facilitate the establishment and maintenance of user sessions within Unity applications using the Xerial services. It provides functionality to deserialize session response data received from Xerial servers, allowing the storage and retrieval of user session information.


SessionData Class

The SessionData class represents the session information retrieved from the Xerial services. It encapsulates both the access token and the refresh token necessary for maintaining user sessions within Unity applications.

public class SessionData
{
    public SessionToken access;
    public SessionToken refresh;
}

Properties

  • access: An instance of the SessionToken class representing the access token associated with the user session.

  • refresh: An instance of the SessionToken class representing the refresh token associated with the user session.

Example

csharp// Example instantiation of SessionData object
SessionData sessionData = new SessionData();

// Example assignment of access token
sessionData.access = new SessionToken();
sessionData.access.token = "sampleAccessToken";

// Example assignment of refresh token
sessionData.refresh = new SessionToken();
sessionData.refresh.token = "sampleRefreshToken";
PreviousService ManagersNextWallet Manager

Last updated 1 year ago

đŸŽī¸
đŸ•šī¸