Bearer provides all of the tools to build, run and manage API integrations.

Overview

Bearer - The API Integration Framework

Bearer Documentation

Bearer provides all of the tools to build, run and manage API
Learn more


Version License Build Status

Archive Status

Bearer JS has been archived as we no longer support building integrations directly with Bearer. See our open source project, Pizzly, which offers much of this functionality.

Useful links

Comments
  • Support passing params when connecting

    Support passing params when connecting

    ๐Ÿป What your PR is doing?

    Adds support for a params property to the Connect Component. The params are passed to the JS client which sends them to the connect URL. The parameters can then be used in the auth/request config for an API.

    ๐Ÿ“ฆ Package concerned

    • @bearer/js
    • @bearer/react

    โœ… Checklist

    • [x] Tests were added (if necessary)
    • [x] I used conventional commits
    opened by didroe 4
  • docs: update README to reflect archived status

    docs: update README to reflect archived status

    ๐Ÿป What your PR is doing?

    Update README to reflect new archived status

    ๐Ÿ“ฆ Package concerned

    ๐Ÿ–ฅ Screenshots or screen recording

    Before

    After

    ๐Ÿบ Links

    ๐Ÿ›  How to test it

    โœ… Checklist

    • [ ] Tests were added (if necessary)
    • [ ] I used conventional commits
    opened by elsapet 1
  • Add support for fetching auth details to Node client

    Add support for fetching auth details to Node client

    ๐Ÿป What your PR is doing?

    For the Node client, adds api.getAuth() to retrieve auth details. We wrap the raw response from the fetch auth endpoint to decode the dates and give more user-friendly/idiomatic names to the returned values.

    ๐Ÿ“ฆ Package concerned

    • @bearer/node

    โœ… Checklist

    • [x] Tests were added (if necessary)
    • [x] I used conventional commits
    opened by didroe 1
  • refactor(bearer-js): make bearer-js ts3.7 compatibile

    refactor(bearer-js): make bearer-js ts3.7 compatibile

    ๐Ÿป What your PR is doing?

    Ensure we are compatible with ts3.7

    ๐Ÿ“ฆ Package concerned

    @bearer/js

    ๐Ÿ–ฅ Screenshots or screen recording

    Before

    src/index.ts:2:8 - error TS2440: Import declaration conflicts with local declaration of 'BearerInstance'.
    
    2 import BearerInstance from './lib/bearer'
             ~~~~~~~~~~~~~~
    
    
    Found 1 error.
    

    After

    yarn run v1.19.0
    $ /home/radek/work/bearer/bearer-js/node_modules/.bin/tsc --noEmit
    Done in 1.53s.
    

    ๐Ÿบ Links

    ๐Ÿ›  How to test it

    โœ… Checklist

    • [ ] Tests were added (if necessary)
    • [ ] I used conventional commits
    opened by RadekMolenda 0
  • Docs/outdated readme

    Docs/outdated readme

    ๐Ÿป What your PR is doing?

    Fixes a few problems with the node package readme.

    • Link to @bearer/express pointed to an outdated git link
    • Docs for the invoke method appear to be left over from it's removal in c81f6376c0d3f1a89cb2260d371b035f93b1e50d. Removed references from the timeout section.

    ๐Ÿ“ฆ Package concerned

    • @bearer/node

    ๐Ÿ–ฅ Screenshots or screen recording

    image

    Before

    image

    After

    ๐Ÿบ Links

    ๐Ÿ›  How to test it

    โœ… Checklist

    • [ ] Tests were added (if necessary)
    • [x] I used conventional commits
    ignore-reminder 
    opened by markmichon 0
  • fix: export node bearer client

    fix: export node bearer client

    ๐Ÿป What your PR is doing?

    • export BearerClient class: allow developer to create wrapper on top of it and take advantages of Typescript
    • update readme

    ๐Ÿ“ฆ Package concerned

    • @bearer/express
    • @bearer/node

    ๐Ÿ–ฅ Screenshots or screen recording

    Before

    After

    ๐Ÿบ Links

    ๐Ÿ›  How to test it

    โœ… Checklist

    • [x] Tests were added (if necessary)
    • [x] I used conventional commits
    opened by tanguyantoine 0
  • Node agent

    Node agent

    ๐Ÿป What your PR is doing?

    Sorry, that is a huge one ๐Ÿ™

    • create bearer' node agent
    • backport ruby agent functionalities

    ๐Ÿ“ฆ Package concerned

    • @bearer/node-agent

    ๐Ÿ›  How to test it

    • build the package:yarn build (at packages/node-agent location)
    • link the package: yarn link (at packages/node-agent location)
    • create a dummy application
    // index.js
    require('@bearer/node-agent')
    const axios = require('axios')
    axios.post(
      'https://postman-echo.com/post',
      {
        whatever: 'ok'
      },
      { params: { sponge: 'bob' } }
    )
    
    
    • run the script
    BEARER_SECRET_KEY=yourkey node index.js
    

    โœ… Checklist

    • [x] Tests were added (if necessary)
    • [x] I used conventional commits
    opened by tanguyantoine 0
  • feat(@bearer/node): add logging

    feat(@bearer/node): add logging

    ๐Ÿป What your PR is doing?

    Adds logging to @bearer/node

    ๐Ÿ“ฆ Package concerned

    ๐Ÿ–ฅ Screenshots or screen recording

    Before

    request-id was not logged

    After we log request-id with using the following format:

    { message: 'request id: 1-5da8547f-95e728ac64f9ea90cb50ae68',
    level: 'info',
    label: 'bearer',
    timestamp: '2019-10-17T11:46:07.448Z' }
    

    ๐Ÿบ Links

    ๐Ÿ›  How to test it

    โœ… Checklist

    • [ ] Tests were added (if necessary)
    • [ ] I used conventional commits
    opened by RadekMolenda 0
  • feat(node-agent): import poc

    feat(node-agent): import poc

    ๐Ÿป What your PR is doing?

    Introduce node-agent

    ๐Ÿ“ฆ Package concerned

    • @bearer/node-agent

    ๐Ÿ–ฅ Screenshots or screen recording

    Before

    After

    ๐Ÿบ Links

    ๐Ÿ›  How to test it

    โœ… Checklist

    • [ ] Tests were added (if necessary)
    • [ ] I used conventional commits
    opened by tanguyantoine 0
  • build: test build

    build: test build

    ๐Ÿป What your PR is doing?

    Testing builds

    ๐Ÿ“ฆ Package concerned

    • all

    ๐Ÿ–ฅ Screenshots or screen recording

    Before

    After

    ๐Ÿบ Links

    ๐Ÿ›  How to test it

    โœ… Checklist

    • [ ] Tests were added (if necessary)
    • [ ] I used conventional commits
    opened by RadekMolenda 0
  • Feat/ci cd publishing

    Feat/ci cd publishing

    ๐Ÿป What your PR is doing?

    Setup CI/CD to publish using lerna

    ๐Ÿ“ฆ Package concerned

    • all

    ๐Ÿ–ฅ Screenshots or screen recording

    Before

    no publishing on tag event

    After

    Packages will be published as next on tag event

    ๐Ÿบ Links

    ๐Ÿ›  How to test it

    โœ… Checklist

    • [ ] Tests were added (if necessary)
    • [ ] I used conventional commits
    opened by RadekMolenda 0
  • [BUG] - Creating a setup-id with wrong authentication type is failing silently

    [BUG] - Creating a setup-id with wrong authentication type is failing silently

    Describe the bug Saving a bad type of credentials fails silently (response is 200 with error message in it)

    Package concerned

    @bearer/js

    To Reproduce Steps to reproduce the behavior.

    1. Sign in to your Bearer dashboard
    2. Make sure you've the Stripe API added
    3. Serve the following code
    <!DOCTYPE html>
    <script src="https://cdn.jsdelivr.net/npm/@bearer/js/lib/bearer.production.min.js"></script>
    <script>
      const bearerClient = bearer('YOUR-PUBLISHABLE-KEY')
    
      bearerClient
        .integration('stripe')
        .invoke('bearer-setup-save', { setup: { type: 'TEST', apiKey: 'stripe-api-key' } })
        .then(({ data }) => console.log(data.setupId))
    </script>
    
    1. Look into the network tab of your web DevTools. The request to save credentials returns a 200.

    Expected behavior The authentication type passed is TEST, which isn't supported by Bearer. So I presume Bearer should reply with a 400 Bad request.

    The error message in the response is pretty helpful though:

    {
       "error":{
          "isJoi":true,
          "name":"ValidationError",
          "details":[
             {
                "message":"\"type\" must be one of [OAUTH2, OAUTH1, APIKEY, BASIC]",
                "path":["type"],
                "type":"any.allowOnly",
                "context":{
                   "value":"TEST",
                   "valids":[  "OAUTH2", "OAUTH1", "APIKEY", "BASIC"  ],
                   "key":"type",
                   "label":"type"
                }
             }
          ],
          "_object":{
             "type":"TEST",
             "apiKey":"stripe-api-key"
          }
       }
    }
    ```
    opened by Frenchcooc 1
  • feat(@bearer/node): add retry

    feat(@bearer/node): add retry

    ๐Ÿป What your PR is doing?

    Add retry to requests using exponential backoff delay

    ๐Ÿ“ฆ Package concerned

    • @bearer/node

    ๐Ÿ–ฅ Screenshots or screen recording

    Before

    No retry

    After

    Client will retry on relevant network errors

    ๐Ÿบ Links

    ๐Ÿ›  How to test it

    โœ… Checklist

    • [ ] Tests were added (if necessary)
    • [ ] I used conventional commits
    ignore-reminder 
    opened by RadekMolenda 0
Releases(release-test-v2.2.0)
Owner
Bearer.sh
Implement Privacy by Design processes in developersโ€™ workflows.
Bearer.sh
Ts-api - This is a Typescript library facilitating usage of Localazy's API.

@localazy/ts-api This is a Typescript library facilitating usage of Localazy's API. To better understand this library, it is recommended to study the

Localazy 2 Jun 17, 2022
Modern Fetch API wrapper for simplicity.

FarFetch Class Modern Fetch API wrapper for simplicity. Install npm i @websitebeaver/far-fetch Then include it in the files you want to use it in lik

Website Beaver 53 Oct 28, 2022
REST API for muvi

muvi API REST API for muvi - a Chrome extension to download movies directly from a Google search. Run it locally npm i npm test How to contribute Help

null 6 Sep 19, 2021
Cuma mau bantu mereka yang kepengen bikin api sendiri

Source Codes - Zhirrr's API Api Features Check it yourself Here Cara Ganti ApiKey Gimana? Cara Mengganti Nya Cukup Gampang, Kalian Hanya Perlu Untuk M

zeeone 46 Jan 13, 2022
An API by Sujal Goel.

API ?? An API by Sujal Goel. Features ?? ?? Discord OAuth2 โœจ Simple and easy to use ?? Token based authentication for endpoints and much more! Contrib

Sujal Goel 4 Nov 7, 2021
API KBANK ( KBIZ )

Kbiz API Unofficial Kbiz's API. Examples เธเนˆเธญเธ™เนƒเธŠเน‰เธ‡เธฒเธ™ เธˆเธณเน€เธ›เน‡เธ™เธ•เน‰เธญเธ‡เธฅเธ‡ axios เธเนˆเธญเธ™ var kbizapi = require("./kbiz.class"); (async()=>{ var config = {

Think so. 9 Sep 7, 2022
A simple project to helping developer's to access open api's

OAS: OPEN APPLE STORE, has made this with the help of Apple Store item, this project which provide an additional choice to developer to interact with API.

Abhay Prajapati 8 Nov 19, 2022
Promise based HTTP client for the browser and node.js

axios Promise based HTTP client for the browser and node.js New axios docs website: click here Table of Contents Features Browser Support Installing E

axios 98k Jan 3, 2023
Job scheduler and rate limiter, supports Clustering

bottleneck Bottleneck is a lightweight and zero-dependency Task Scheduler and Rate Limiter for Node.js and the browser. Bottleneck is an easy solution

Simon Grondin 1.4k Jan 3, 2023
JavaScript OAuth 1.0a signature generator (RFC 5849) for node and the browser

OAuth 1.0a signature generator for node and the browser Compliant with RFC 5843 + Errata ID 2550 and community spec Installation Install with npm: npm

Marco Bettiolo 230 Dec 16, 2022
โš›๏ธ Hooks for fetching, caching and updating asynchronous data in React

Hooks for fetching, caching and updating asynchronous data in React Enjoy this library? Try the entire TanStack! React Table, React Form, React Charts

Tanner Linsley 32k Dec 31, 2022
Bearer provides all of the tools to build, run and manage API integrations.

Bearer - The API Integration Framework Bearer provides all of the tools to build, run and manage API Learn more Archive Status Bearer JS has been arch

Bearer.sh 22 Oct 31, 2022
โšก๏ธThe Fullstack React Framework โ€” built on Next.js

The Fullstack React Framework "Zero-API" Data Layer โ€” Built on Next.js โ€” Inspired by Ruby on Rails Read the Documentation โ€œZero-APIโ€ data layer lets y

โšก๏ธBlitz 12.5k Jan 4, 2023
Manage GitHub resources like repositories, teams, members, integrations and workflows with the AWS CDK as Custom Resources in CloudFormation.

CDK Github Manage GitHub resources like repositories, teams, members, integrations and workflows with the AWS CDK as Custom Resources in CloudFormatio

Pepperize 8 Nov 25, 2022
GraphQL Hive provides all the tools the get visibility of your GraphQL architecture at all stages, from standalone APIs to composed schemas (Federation, Stitching)

GraphQL Hive GraphQL Hive provides all the tools the get visibility of your GraphQL architecture at all stages, from standalone APIs to composed schem

Kamil Kisiela 184 Dec 21, 2022
LoopBack makes it easy to build modern API applications that require complex integrations.

LoopBack makes it easy to build modern applications that require complex integrations. Fast, small, powerful, extensible core Generate real APIs with

StrongLoop and IBM API Connect 4.4k Jan 6, 2023
LoopBack makes it easy to build modern API applications that require complex integrations.

LoopBack makes it easy to build modern applications that require complex integrations. Fast, small, powerful, extensible core Generate real APIs with

StrongLoop and IBM API Connect 4.4k Jan 4, 2023
API dot Open Sauced is NestJS and SupaBase powered OAS3 backend designed to remove client complexity and provide a structured graph of all @open-sauced integrations

?? Open Sauced Nest Supabase API ?? The path to your next Open Source contribution ?? Prerequisites In order to run the project we need the following

TED Vortex (Teodor-Eugen Duศ›ulescu) 13 Dec 18, 2022
In this project I have build a To Do List app that you can list, add, delete and manage your daily tasks better. Build with HTML, CSS, JS, ES6, JSON

ToDo List This project is build by javascript web packages which can add and remove daily tasks. Built With Html Css Javascript Sublime Text Author ??

Sahar Saba Amiri 7 Oct 25, 2022