Skip to content

Add vailable-auth #47

@tomfa

Description

@tomfa

Fix shared package. Then add new package vailable-auth with help methods for creating tokens, with autocomplete for permissions.

import auth from 'vailable-auth';

const userToken = auth.createToken({ 
  secretKey: string, 
  accountId: string, 
  userId: string,
  permissions: Permission[] = ['vailable:role:user'], 
});
const adminToken = auth.createAdminToken({ secretKey: string, accountId: string });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions