[GH-ISSUE #971] Add missing oslo dependency #25850

Closed
opened 2026-04-17 16:08:09 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @SashaGoncharov19 on GitHub (Dec 21, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/971

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

install better auth, and try to build app. For server-side.

Current vs. Expected behavior

Current behavior:

bun build ./src/index.ts --outdir ./build --packages bundle --minify --target bun
122 | :"text/html"}})}import{sha256 as hn}from"oslo/crypto";var yn=(e,i)=>{let r=e.context.options.baseURL,o=e.context.baseURL                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
error: Could not resolve: "oslo/crypto". Maybe you need to "bun install"?
    at C:\Users\Sasha\WebstormProjects\host-panel-backend\node_modules\better-auth\dist\plugins.js:122:4820

Expected:
Just build normally

What version of Better Auth are you using?

1.1.0

Provide environment information

- OS: any

Which area(s) are affected? (Select all that apply)

Backend, Package

Auth config (if applicable)

import { betterAuth } from "better-auth"
export const auth = betterAuth({
  emailAndPassword: {  
    enabled: true
  },
});

Additional context

I'm updated to latest release.

Originally created by @SashaGoncharov19 on GitHub (Dec 21, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/971 ### Is this suited for github? - [X] Yes, this is suited for github ### To Reproduce install better auth, and try to build app. For server-side. ### Current vs. Expected behavior Current behavior: ``` bun build ./src/index.ts --outdir ./build --packages bundle --minify --target bun 122 | :"text/html"}})}import{sha256 as hn}from"oslo/crypto";var yn=(e,i)=>{let r=e.context.options.baseURL,o=e.context.baseURL error: Could not resolve: "oslo/crypto". Maybe you need to "bun install"? at C:\Users\Sasha\WebstormProjects\host-panel-backend\node_modules\better-auth\dist\plugins.js:122:4820 ``` Expected: Just build normally ### What version of Better Auth are you using? 1.1.0 ### Provide environment information ```bash - OS: any ``` ### Which area(s) are affected? (Select all that apply) Backend, Package ### Auth config (if applicable) ```typescript import { betterAuth } from "better-auth" export const auth = betterAuth({ emailAndPassword: { enabled: true }, }); ``` ### Additional context I'm updated to latest release.
GiteaMirror added the lockedbug labels 2026-04-17 16:08:10 -05:00
Author
Owner

@opswiz commented on GitHub (Dec 21, 2024):

Also, the package 'oslo' is going to be deprecated and recommended to use @oslojs/crypto

<!-- gh-comment-id:2557992192 --> @opswiz commented on GitHub (Dec 21, 2024): Also, the package 'oslo' is going to be deprecated and recommended to use [@oslojs/crypto](https://crypto.oslojs.dev/)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#25850