Socket
Socket
Sign inDemoInstall

@r/private

Package Overview
Dependencies
25
Maintainers
13
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @r/private

first-party reddit apis


Version published
Weekly downloads
1
Maintainers
13
Install size
43.5 kB
Created
Weekly downloads
 

Readme

Source

@r/private

A module that provides utilities for when you own your own reddit install.

Snoode Enhancements

Login, Register, and Token Refresh

Usage

import APIOptions from '@r/api-client';
import { PrivateAPI } from '@r/private';

const myAppOptions = {
  ...APIOptions,
  clientSecret: 'my-client-secret'
  clientId: 'my-super-secret-app-id',
  withEmailScope: false, // only supported for non-embedded apps
};

const token = await PrivateAPI.login(myAppOptions, username, password);
const newToken = await PrivateAPI.refreshToken(myAppOptions, token.refresh_token);

const token = await PrivateAPI.convertCookiesToAuthToken(myAppOptions, cookies.split(';'));

FAQs

Last updated on 03 Dec 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc