Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

workers-firebase

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

workers-firebase - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

4

dist/tokens.d.ts

@@ -1,2 +0,2 @@

import type { OauthTokenGetter, ServiceAccount, TokenGetter } from './types';
import type { ServiceAccount, TokenGetter } from './types';
declare const aud: {

@@ -9,5 +9,5 @@ oauth: string;

export declare function getTokenGetter(settings: ServiceAccount, service: keyof Aud): TokenGetter;
export declare function getOauthTokenGetter(settings: ServiceAccount): OauthTokenGetter;
export declare function getOauthTokenGetter(settings: ServiceAccount): (scope: string) => Promise<string>;
export declare function createToken(serviceAccount: ServiceAccount, service: keyof typeof aud, claims?: object): Promise<string>;
export {};
//# sourceMappingURL=tokens.d.ts.map

@@ -5,3 +5,2 @@ export * from './auth/types';

export declare type TokenGetter = (claims?: Record<string, any>) => Promise<string>;
export declare type OauthTokenGetter = (scope: string) => Promise<string>;
export interface ServiceAccount {

@@ -17,3 +16,2 @@ projectId: string;

getToken: TokenGetter;
getOauthToken: OauthTokenGetter;
projectId: string;

@@ -20,0 +18,0 @@ databaseId?: string;

{
"name": "workers-firebase",
"version": "0.1.0",
"version": "0.1.1",
"scripts": {

@@ -5,0 +5,0 @@ "start": "tsc --watch",

import jwt from '@tsndr/cloudflare-worker-jwt';
import type { OauthTokenGetter, ServiceAccount, TokenGetter } from './types';
import type { ServiceAccount, TokenGetter } from './types';

@@ -32,3 +32,3 @@ const exp = 3600;

export function getOauthTokenGetter(settings: ServiceAccount): OauthTokenGetter {
export function getOauthTokenGetter(settings: ServiceAccount) {
const tokens = new Map<string, string>();

@@ -35,0 +35,0 @@ const tokenExps = new Map<string, number>();

@@ -7,3 +7,2 @@ export * from './auth/types';

export type TokenGetter = (claims?: Record<string, any>) => Promise<string>;
export type OauthTokenGetter = (scope: string) => Promise<string>;

@@ -21,3 +20,2 @@ export interface ServiceAccount {

getToken: TokenGetter;
getOauthToken: OauthTokenGetter;
projectId: string;

@@ -24,0 +22,0 @@ databaseId?: string;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc