🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

BitzArt.Blazor.Cookies

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

BitzArt.Blazor.Cookies

Working with browser cookies in Blazor applications

1.5.0
Source
NuGet
Version published
Maintainers
1
Created
Source

Tests

NuGet version NuGet downloads

Overview

BitzArt.Blazor.Cookies is a nuget package that simplifies working with browser cookies in Blazor applications.

🍪 We also have an authentication package for Blazor that simplifies implementing custom JWT-based authentication & authorization in your Blazor applications while using this package under the hood.

You can use cookies in your Blazor applications as a way to store user's unique information, such as preferences, settings, or session / authentication data.

  • Built for dotnet 8+
  • Supports all Blazor United render modes
  • Supports Blazor prerendering
Blazor RendermodeSupport
Static SSR✔️
Interactive Server✔️
Interactive WebAssembly✔️
Interactive Auto✔️

Installation

  • Install the following package in your Blazor Server project:
dotnet add package BitzArt.Blazor.Cookies.Server
  • Add this line to your Server project program.cs:
builder.AddBlazorCookies();
  • Install the following package in your Blazor Client project:
dotnet add package BitzArt.Blazor.Cookies.Client
  • Add this line to your Client project program.cs:
builder.AddBlazorCookies();

Usage

  • Inject ICookieService in any of your Services / Blazor Components
  • Use ICookieService to interact with user's cookies.

License

License

Keywords

FAQs

Package last updated on 27 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts