UNPKG

@poppinss/oauth-client

Version:

A framework agnostic package to implement "Login with" flow using OAuth compliant authorization servers.

22 lines (21 loc) 594 B
import type { Oauth1SignatureOptions } from '../../types.js'; /** * Creates the signature for the OAuth1 request by following the spec * https://tools.ietf.org/html/rfc5849#section-3.5.1 * https://oauth.net/core/1.0a/#auth_step1 */ export declare class Oauth1Signature { #private; constructor(options: Oauth1SignatureOptions); /** * Generate signature and the oauth header */ generate(): { params: any; oauthParams: { [key: string]: string | number | boolean; }; oauthHeader: string; signature: string; }; }