BitzArt / Blazor.Cookies

Working with browser cookies in Blazor United
MIT License
31 stars 5 forks source link
blazor blazor-server blazor-webassembly browser-cookies cookie cookies csharp dotnet js-interop jsruntime

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.

Blazor Rendermode Support
Static SSR ✔️
Interactive Server ✔️
Interactive WebAssembly ✔️
Interactive Auto ✔️

Installation

dotnet add package BitzArt.Blazor.Cookies.Server
builder.AddBlazorCookies();
dotnet add package BitzArt.Blazor.Cookies.Client
builder.AddBlazorCookies();

Usage

License

License