How to use the @solid/oidc-rp/lib/PoPToken.issueFor function in @solid/oidc-rp

To help you get started, we’ve selected a few @solid/oidc-rp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github solid / solid-auth-client / src / webid-oidc.js View on Github external
export async function fetchWithCredentials(
  session: webIdOidcSession,
  fetch: Function,
  input: RequestInfo,
  options?: RequestOptions
): Promise {
  const popToken = await PoPToken.issueFor(toUrlString(input), session)
  const authenticatedOptions = {
    ...options,
    credentials: 'include',
    headers: copyHeaders(
      {
        authorization: `Bearer ${popToken}`
      },
      options
    )
  }
  return fetch(input, authenticatedOptions)
}
github solid / solid-cli / src / SolidClient.js View on Github external
async createToken(url, session) {
    return PoPToken.issueFor(url, session);
  }

@solid/oidc-rp

OpenID Connect Relying Party client library

MIT
Latest version published 2 years ago

Package Health Score

54 / 100
Full package analysis

Similar packages