Skip to content

Instantly share code, notes, and snippets.

View 509dave16's full-sized avatar

David Fall 509dave16

  • ex-Gopuff
  • Spokane, WA
View GitHub Profile
@509dave16
509dave16 / auth.service.ts
Created July 12, 2018 15:57
Auth Service for Gun.js
import { gun } from './gun.service';
export const STATUS_SUCCESS = 'success';
export const STATUS_ERROR = 'error';
const ACTION_CREATE = 'create';
const ACTION_AUTH = 'auth';
const SESSION_KEY_USERNAME = 'rt_username';
const SESSION_KEY_PASSWORD = 'rt_password';
export interface Credentials {
username: string;
@509dave16
509dave16 / auth.service.ts
Created July 12, 2018 15:57
Auth Service for Gun.js
import { gun } from './gun.service';
export const STATUS_SUCCESS = 'success';
export const STATUS_ERROR = 'error';
const ACTION_CREATE = 'create';
const ACTION_AUTH = 'auth';
const SESSION_KEY_USERNAME = 'rt_username';
const SESSION_KEY_PASSWORD = 'rt_password';
export interface Credentials {
username: string;