Skip to content

teachforindia-technology/dry-roads-browser

Repository files navigation

DRY Roads - Browser Utilities 🌂

Keep projects DRY. This repo contains code used or usable across multiple projects to interact with the crossroads API.

Actions

import dryRoads from 'dry-roads-browser'
const {actionCreators} = dryRoads

const actions = new actionCreators(crossroadsConfig)
const {crossroads} = actions

export default crossroads

export function requestAccessToken() {
	return actions.requestAccessToken()
}
export function fetchAccessToken() {
	return actions.fetchAccessToken()
}
export function receiveAccessToken() {
	return actions.receiveAccessToken()
}
export function fetchLogout() {
	return actions.fetchLogout()
}

Fetch Accounts

<script id ='crossroads-script-div' src="https://cdn.jsdelivr.net/npm/[email protected]/dist/crossroads-fetch-accounts.js"></script>

About

Client Utilities for Crossroads

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published