{"id":13710230,"url":"https://github.com/TinyStuff/TinyAccountManager","last_synced_at":"2025-05-06T18:34:36.118Z","repository":{"id":69889785,"uuid":"112250873","full_name":"TinyStuff/TinyAccountManager","owner":"TinyStuff","description":"Account manager for Xamarin and UWP","archived":false,"fork":false,"pushed_at":"2018-09-11T07:40:09.000Z","size":261,"stargazers_count":14,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-11T05:53:42.566Z","etag":null,"topics":["android","ios","uwp","windows","xamarin"],"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/TinyStuff.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}},"created_at":"2017-11-27T21:30:11.000Z","updated_at":"2023-08-24T20:17:24.000Z","dependencies_parsed_at":"2023-02-27T20:45:18.057Z","dependency_job_id":null,"html_url":"https://github.com/TinyStuff/TinyAccountManager","commit_stats":null,"previous_names":["dhindrik/tinyaccountmanager"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TinyStuff%2FTinyAccountManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TinyStuff%2FTinyAccountManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TinyStuff%2FTinyAccountManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TinyStuff%2FTinyAccountManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TinyStuff","download_url":"https://codeload.github.com/TinyStuff/TinyAccountManager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224521651,"owners_count":17325274,"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","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":["android","ios","uwp","windows","xamarin"],"created_at":"2024-08-02T23:00:53.359Z","updated_at":"2024-11-13T20:31:30.785Z","avatar_url":"https://github.com/TinyStuff.png","language":"C#","readme":"# Xamarin.Essentials\nXamarin.Essentials will have this functionallity, please take a look at it. But we will continue to maintain TinyAccountMananger for thoose who use it. \nhttps://docs.microsoft.com/en-us/xamarin/essentials/\n\n# TinyAccountManager\nAccount manager for Xamarin and UWP. Store account information in your app in a secure way.\n\n## Build status\n| Platform | Status |\n|---|---|\n| iOS | \u003cimg src=\"https://io2gamelabs.visualstudio.com/_apis/public/build/definitions/be16d002-5786-41a1-bf3b-3e13d5e80aa0/11/badge\" /\u003e |\n| Android | \u003cimg src=\"https://io2gamelabs.visualstudio.com/_apis/public/build/definitions/be16d002-5786-41a1-bf3b-3e13d5e80aa0/12/badge\" /\u003e |\n| UWP | \u003cimg src=\"https://io2gamelabs.visualstudio.com/_apis/public/build/definitions/be16d002-5786-41a1-bf3b-3e13d5e80aa0/10/badge\" /\u003e |\n\n## Get started\nThis is as short guide how to get started using TinyAccountManager.\n\n### How to install\nThe easiest way is to install the package from NuGet:\n\n```\nInstall-Package TinyAccountManager\n```\n\nYou should install it on all your platform project and if you have other projects in your solution where you want to access it, you should install it there as well.\n\n### How to use\nHere is a small get started guide, there are also a sample project if you take a look in the src folder.\n\n#### Initialization\nThe first you need to do is to initialize the AccountManager per platform.\n\n```csharp\n//iOS\nTinyAccountManager.iOS.AccountManager.Initialize();\n\n//Android\nTinyAccountManager.Droid.AccountManager.Initialize();\n\n//UWP\nTinyAccountManager.UWP.AccountManager.Initialize();\n```\n\n#### Save\nThe only filed that are required is ServiceId.\n\n```csharp\nvar account = new Account()\n{\n    ServiceId = \"TinyAccountManagerSample\",\n    Username = \"dhindrik\"\n};\n\naccount.Properties.Add(\"Password\", \"MySecretPassword\");\n\nawait AccountMananger.Current.Save(account);\n```\n\n#### Get and Exists\nIt's recommended that you use Exists before Get, if you using Get and there is no matching account it will throw an exception.\n```csharp\nAccount account = null;\n\nvar exists = await AccountManager.Current.Exists(\"TinyAccountManagerSample\")\n\nif(exists)\n  account = await AccountManager.Current.Get(\"TinyAccountManagerSample\")\n```\n\n#### Remove\n```csharp\nawait AccountManager.Current.Remove(\"TinyAccountManagerSample\")\n```\n\n#### IOC\nIf you want to use IOC instead of the singleton pattern, you just register the implemenation for each platform with the IAccountManager interface. If you select this way you don't have to run Initialize on each platform\n\n**iOS:** iOSAccountManager\n\n**Android:** AndroidAccountManager\n\n**UWP:** UWPAccountManager\n","funding_links":[],"categories":["Plugins"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTinyStuff%2FTinyAccountManager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTinyStuff%2FTinyAccountManager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTinyStuff%2FTinyAccountManager/lists"}