1
0
Fork 0
toolkit/packages/oidc-client
Sourav Chanduka 456cf5a97f package.json updated 2021-07-27 08:47:54 +05:30
..
__tests__ Resolved issues 2021-07-20 15:56:28 +05:30
dist null ref fix 2021-07-27 06:27:07 +05:30
src null ref fix 2021-07-27 06:27:07 +05:30
LICENSE.md Inital draft of OIDC Client 2021-07-01 08:11:28 +05:30
README.md updated readme 2021-07-26 15:50:36 +05:30
package-lock.json package.json updated 2021-07-27 08:47:54 +05:30
package.json package.json updated 2021-07-27 08:47:54 +05:30
tsconfig.json Inital draft of OIDC Client 2021-07-01 08:11:28 +05:30

README.md

@sourav_chanduka/oidc-client

Usage

You can use this package to interact with the github oidc provider.

Get the ID token

Method Name: getIDToken

Inputs

audience : optional

Example:

const core = require('@actions/core');
const id = require('@actions/oidc-client')


async function getID(){
   const id_token = await id.getIDToken('client-id', 'client-secret')
   const val = `ID token is ${id_token}`
   core.setOutput('id_token', id_token);
      
}

getID()