Skip to content

Commit

Permalink
fix inconsistent variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Dec 7, 2023
1 parent 46df11e commit e8e15e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/src/pages/upgrade-v3/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Here's the base config. Lucia is now initialized using the `Lucia` class, which
import { Lucia, TimeSpan } from "lucia";
import { astro } from "lucia/middleware";

export const auth = new Lucia(adapter, {
export const lucia = new Lucia(adapter, {
sessionCookie: {
attributes: {
secure: env === "PRODUCTION" // replaces `env` config
Expand All @@ -55,7 +55,7 @@ Here's the fully updated configuration for reference. `middleware` and `csrfProt
import { Lucia, TimeSpan } from "lucia";
import { astro } from "lucia/middleware";

export const auth = new Lucia(adapter, {
export const lucia = new Lucia(adapter, {
getSessionAttributes: (attributes) => {
return {
ipCountry: attributes.ip_country
Expand Down

0 comments on commit e8e15e3

Please sign in to comment.