netlify-graph-auth
Advanced tools
Comparing version 0.0.1-beta.4 to 0.0.1-beta.5
@@ -1,6 +0,5 @@ | ||
import NetlifyGraphAuth from './auth'; | ||
import OAuthError from './oauthError'; | ||
import { InMemoryStorage, LocalStorage } from './storage'; | ||
import { findMissingAuthServices } from './helpers'; | ||
export { NetlifyGraphAuth, InMemoryStorage, LocalStorage, findMissingAuthServices, OAuthError, }; | ||
export default NetlifyGraphAuth; | ||
export * as default from './auth'; | ||
export * as NetlifyGraphAuth from './auth'; | ||
export * as OAuthError from './oauthError'; | ||
export { InMemoryStorage, LocalStorage } from './storage'; | ||
export { findMissingAuthServices } from './helpers'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.OAuthError = exports.findMissingAuthServices = exports.LocalStorage = exports.InMemoryStorage = exports.NetlifyGraphAuth = void 0; | ||
var auth_1 = require("./auth"); | ||
exports.NetlifyGraphAuth = auth_1.default; | ||
var oauthError_1 = require("./oauthError"); | ||
exports.OAuthError = oauthError_1.default; | ||
exports.findMissingAuthServices = exports.LocalStorage = exports.InMemoryStorage = exports.OAuthError = exports.NetlifyGraphAuth = exports.default = void 0; | ||
exports.default = require("./auth"); | ||
exports.NetlifyGraphAuth = require("./auth"); | ||
exports.OAuthError = require("./oauthError"); | ||
var storage_1 = require("./storage"); | ||
@@ -13,3 +12,2 @@ Object.defineProperty(exports, "InMemoryStorage", { enumerable: true, get: function () { return storage_1.InMemoryStorage; } }); | ||
Object.defineProperty(exports, "findMissingAuthServices", { enumerable: true, get: function () { return helpers_1.findMissingAuthServices; } }); | ||
exports.default = auth_1.default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "netlify-graph-auth", | ||
"version": "0.0.1-beta.4", | ||
"version": "0.0.1-beta.5", | ||
"description": "Client-side authentication for Netlify GraphQL APIs", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -82,9 +82,9 @@ # Netlify Graph Authentication Helpers for browsers | ||
```javascript | ||
const response = await auth.logout('github'); | ||
const response = await auth.logout('github'); | ||
if (response.result === 'success') { | ||
console.log('Logout succeeded'); | ||
} else { | ||
console.log('Logout failed'); | ||
} | ||
if (response.result === 'success') { | ||
console.log('Logout succeeded'); | ||
} else { | ||
console.log('Logout failed'); | ||
} | ||
``` |
Sorry, the diff of this file is not supported yet
88824
1312