{"id":19175424,"url":"https://github.com/jzo001/forge.security.jwt.client.storage.browser","last_synced_at":"2026-04-12T22:08:43.049Z","repository":{"id":65543271,"uuid":"550847977","full_name":"JZO001/Forge.Security.Jwt.Client.Storage.Browser","owner":"JZO001","description":"Jwt Token client side / browser storage: LocalStorage, SessionStorage","archived":false,"fork":false,"pushed_at":"2025-03-20T07:50:25.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-22T15:23:29.416Z","etag":null,"topics":["blazor","jwt","localstorage","provider","sessionstorage","storage"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JZO001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-10-13T12:30:13.000Z","updated_at":"2025-03-20T07:50:28.000Z","dependencies_parsed_at":"2025-08-22T00:34:20.583Z","dependency_job_id":"46ebc62a-43e9-4197-b62a-79b66c8ab9ce","html_url":"https://github.com/JZO001/Forge.Security.Jwt.Client.Storage.Browser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JZO001/Forge.Security.Jwt.Client.Storage.Browser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JZO001%2FForge.Security.Jwt.Client.Storage.Browser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JZO001%2FForge.Security.Jwt.Client.Storage.Browser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JZO001%2FForge.Security.Jwt.Client.Storage.Browser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JZO001%2FForge.Security.Jwt.Client.Storage.Browser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JZO001","download_url":"https://codeload.github.com/JZO001/Forge.Security.Jwt.Client.Storage.Browser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JZO001%2FForge.Security.Jwt.Client.Storage.Browser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281047793,"owners_count":26435124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blazor","jwt","localstorage","provider","sessionstorage","storage"],"created_at":"2024-11-09T10:23:13.414Z","updated_at":"2025-10-26T01:36:06.300Z","avatar_url":"https://github.com/JZO001.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Forge.Security.Jwt.Client.Storage.Browser\nForge.Security.Jwt.Client.Storage.Browser is a library extension that provides access to the browsers local and session storage APIs for WASM applications.\n\n\n## Installing\n\nTo install the package add the following line to you csproj file replacing x.x.x with the latest version number:\n\n```\n\u003cPackageReference Include=\"Forge.Security.Jwt.Client.Storage.Browser\" Version=\"x.x.x\" /\u003e\n```\n\nYou can also install via the .NET CLI with the following command:\n\n```\ndotnet add package Forge.Security.Jwt.Client.Storage.Browser\n```\n\nIf you're using Visual Studio you can also install via the built in NuGet package manager.\n\n## Setup\n\nYou will need to register the local storage services with the service collection in your _Startup.cs_ file in Blazor Server.\n\n```c#\npublic void ConfigureServices(IServiceCollection services)\n{\n\t// ... preinitialization steps\n\n\t// always add this code after the \"Forge.Security.Jwt.Client\" library initialization\n    services.AddForgeJwtClientAuthenticationCoreWithLocalStorage();\n\tservices.AddForgeJwtClientAuthenticationCoreWithSessionStorage();\n}\n``` \n\nOr in your _Program.cs_ file in Blazor WebAssembly.\n\n```c#\npublic static async Task Main(string[] args)\n{\n    var builder = WebAssemblyHostBuilder.CreateDefault(args);\n    builder.RootComponents.Add\u003cApp\u003e(\"app\");\n\n    builder.Services.AddForgeJwtClientAuthenticationCoreWithLocalStorage();\n    builder.Services.AddForgeJwtClientAuthenticationCoreWithSessionStorage();\n\n    await builder.Build().RunAsync();\n}\n```\n\n### Registering services as Singleton\nIf you would like to register Storage Provider services as singletons, it is possible by using the following method:\n\n```csharp\nbuilder.Services.AddForgeJwtClientAuthenticationCoreAsSingletonWithLocalStorage();\nbuilder.Services.AddForgeJwtClientAuthenticationCoreAsSingletonWithSessionStorage();\n```\n\nThis method is not recommended in the most cases, try to avoid using it.\n\n\nPlease also check the following projects in my repositories:\n- Forge.Yoda\n- Forge.Security.Jwt.Service\n- Forge.Security.Jwt.Service.Storage.SqlServer\n- Forge.Security.Jwt.Client\n- Forge.Security.Jwt.Client.Storage.Browser\n- Forge.Wasm.BrowserStorages\n- Forge.Wasm.BrowserStorages.NewtonSoft.Json\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjzo001%2Fforge.security.jwt.client.storage.browser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjzo001%2Fforge.security.jwt.client.storage.browser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjzo001%2Fforge.security.jwt.client.storage.browser/lists"}