Skip to content

Commit

Permalink
added exports for auth members
Browse files Browse the repository at this point in the history
  • Loading branch information
Egge21M committed Feb 5, 2025
1 parent 82401c5 commit 1be7ddd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ export async function getBlindedAuthToken(amount: number, url: string, clearAuth
const authProofs = await authWallet.mintProofs(amount, clearAuthToken);
return authProofs.map((p) => getEncodedAuthToken(p));
}

export { CashuAuthMint, CashuAuthWallet };
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { CashuMint } from './CashuMint.js';
import { CashuWallet } from './CashuWallet.js';
import { CashuAuthMint } from './CashuAuthMint.js';
import { CashuAuthWallet } from './CashuAuthWallet.js';
import { PaymentRequest } from './model/PaymentRequest.js';
import { OutputData } from './model/OutputData.js';
import { setGlobalRequestOptions } from './request.js';
Expand All @@ -14,6 +12,7 @@ import {
getDecodedTokenBinary,
getEncodedTokenBinary
} from './utils.js';
import { CashuAuthMint, CashuAuthWallet, getBlindedAuthToken, getEncodedAuthToken } from './auth';

export * from './model/types/index.js';

Expand All @@ -22,6 +21,8 @@ export {
CashuWallet,
CashuAuthMint,
CashuAuthWallet,
getEncodedAuthToken,
getBlindedAuthToken,
PaymentRequest,
OutputData,
getDecodedToken,
Expand Down

0 comments on commit 1be7ddd

Please sign in to comment.