Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions worker/routes/oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ export function registerOAuthRoutes(app: App) {

// Check if user exists with this OAuth identity
const existingUser = await c
.get("db")
.get("dbNoCache")
.query<User>(
"SELECT * FROM users WHERE oauth_provider = $1 AND oauth_sub = $2",
[provider, oauthSub],
Expand Down Expand Up @@ -586,7 +586,7 @@ export function registerOAuthRoutes(app: App) {

// Check if user exists
const existingUser = await c
.get("db")
.get("dbNoCache")
.query<User>(
"SELECT * FROM users WHERE oauth_provider = $1 AND oauth_sub = $2",
["google", verified.sub],
Expand Down Expand Up @@ -821,7 +821,7 @@ export function registerOAuthRoutes(app: App) {

// Check if user already exists with this Apple identity
const existingUser = await c
.get("db")
.get("dbNoCache")
.query<User>(
"SELECT * FROM users WHERE oauth_provider = $1 AND oauth_sub = $2",
["apple", verified.sub],
Expand Down Expand Up @@ -917,7 +917,7 @@ export function registerOAuthRoutes(app: App) {

// Check if user already exists with this Google identity
const existingUser = await c
.get("db")
.get("dbNoCache")
.query<User>(
"SELECT * FROM users WHERE oauth_provider = $1 AND oauth_sub = $2",
["google", verified.sub],
Expand Down
Loading