
Security News
Rspack Introduces Rslint, a TypeScript-First Linter Written in Go
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
@blitzjs/auth
Advanced tools
[](https://blitzjs.com)
`npm i @blitzjs/auth`
# yarn add @blitzjs/auth
# pnpm add @blitzjs/auth
You can alternatively use npx
Currently Blitz Auth usage is only documented with Next.js. We are working on adding additional support for other frameworks.
Add the following to your blitz-client.ts file:
import {AuthClientPlugin} from "@blitzjs/auth"
import {setupBlitzClient} from "@blitzjs/next"
export const authConfig = {
cookiePrefix: "testapp",
}
const {withBlitz} = setupBlitzClient({
plugins: [AuthClientPlugin(authConfig)],
})
export {withBlitz}
Then, add the following to the blitz-server.ts file:
import {setupBlitzServer} from "@blitzjs/next"
import {AuthServerPlugin, PrismaStorage, simpleRolesIsAuthorized} from "@blitzjs/auth"
import {db} from "db"
import {authConfig} from "./blitz-client"
const {gSSP, gSP, api} = setupBlitzServer({
plugins: [
AuthServerPlugin({
...authConfig,
storage: PrismaStorage(db),
isAuthorized: simpleRolesIsAuthorized,
}),
],
})
export {gSSP, gSP, api}
FAQs
[](https://blitzjs.com)
The npm package @blitzjs/auth receives a total of 2,138 weekly downloads. As such, @blitzjs/auth popularity was classified as popular.
We found that @blitzjs/auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.