@withkoji/user-defaults
v0.0.6
Published
Permissioned data bridge for Koji templates
Downloads
1
Keywords
Readme
Koji User Defaults (deprecated)
Permissioned data bridge for Koji templates.
Overview
The @withkoji/user-defaults package provides a secure interface for accessing permissioned user data across all Koji templates. A template can request data with a reserved key, for the user’s Koji profile data, or with a user key from any template on Koji, for additional preferences. This data can then be used to autofill values and personalize experiences. For example, automatically enter the user’s name in a leaderboard, or display the user’s avatar in a game.
[DEPRECATED] This package is deprecated and is included only for backwards compatibility. For new templates, use @withkoji/core.
Installation
Install the package in your Koji project.
npm install --save @withkoji/user-defaults
Basic use
Instantiate KojiUserDefaults
.
import KojiUserDefaults from '@withkoji/user-defaults';
const kojiUserDefaults = new KojiUserDefaults();
Related resources
Contributions and questions
See the contributions page on the developer site for info on how to make contributions to Koji repositories and developer documentation.
For any questions, reach out to the developer community or the @Koji Team
on our Discord server.