aunum
02/17/2023, 10:10 PMmkern
02/17/2023, 10:11 PMverifyOtp
with the emailed token doesn't.
Am I using the correct method for token verification?
client.auth
.verifyOtp({
email: new_email,
token,
type: "email_change"
})
request payload:
{"email": <new_email>,"token":<token>,"type":"email_change","gotrue_meta_security":{}}
response payload:
{
"code": 404,
"msg": "User not found"
}
Rasta
02/17/2023, 10:21 PMconst { data, error: err } = await locals.sb.auth.signInWithPassword({
email: body.email,
password: body.password
})
if (err) {
if (err instanceof AuthApiError && err.status === 400) {
return fail(400, {
error: "Invalid credentials",
})
}
return fail(500, {
message: "Server error. Try again later.",
})
}
console.log(data);
the login is succesful but when logging the data data.session.user.user_metadata and data.user.user_metadata returns this for the 2 users i have (the original data when user was created):
user_metadata: { role: 'user', username: 'emailone@gmail.com' },
user_metadata: { role: 'user', username: 'emailtwo@gmail.com' },
and it should return this (the data in the database, see img attached):
user_metadata: { role: 'admin', username: 'pathone' },
user_metadata: { role: 'user', username: 'pathtwo' },
is signInWithPassword the correct way to get user metadata from the profiles table or how can i get the correct, current data from the profiles table when a user logs in?Xolify
02/18/2023, 12:39 AMelliott
02/18/2023, 1:43 AMBarefootDev
02/18/2023, 2:10 AMsupabase.table("tablename").delete().match({"uid": uid}).execute()
This doesn't error, but it doesn't actually delete the row either. Any hints?benjamin_dobell
02/18/2023, 2:44 AMimport_map.json
isn't being applied when executing supabase functions serve
(all) but it is working if I serve just one function directly i.e. using the deno-relay
container. I can see it's mounted into the edge-runtime
container as I'd expect, but when the function runs it crashes due to import paths being incorrect.
In order to diagnose I presumably need to need to know what the edge-runtime
binary in that container is doing 😅DYELbrah
02/18/2023, 3:24 AMDong
02/18/2023, 6:17 AMYara
02/18/2023, 6:46 AMlefantan
02/18/2023, 7:49 AMDisamDev
02/18/2023, 10:41 AMixxie
02/18/2023, 11:15 AMhgarg
02/18/2023, 11:20 AMONA
02/18/2023, 11:33 AMjs
supabase.from('games').on('*', (payload) => console.log(payload))
Does anyone have a good idea?osener
02/18/2023, 11:49 AMRevaycolizer
02/18/2023, 12:46 PMTwilkey(Limpious)
02/18/2023, 1:18 PMlet { data, error } = await supabase.from('sites')
.select('*')
.not('lastupdated', 'is', null)
.contains('sitedata->plugins', JSON.stringify([{'email': var}]));
Irfan Ahmed
02/18/2023, 2:45 PMOxey405
02/18/2023, 3:08 PMavalanche
02/18/2023, 3:41 PMeijk
02/18/2023, 3:20 PM$SHAREDIR/tsearch_data
. Is it possible to upload files there for hosted supabase? Can it be done via the SQL editor? Or the CLI?
See https://www.postgresql.org/docs/current/textsearch-dictionaries.html.iowageek
02/18/2023, 3:52 PMKen
02/18/2023, 4:38 PMLadislav
02/18/2023, 4:54 PMavalanche
02/18/2023, 4:54 PMDisamDev
02/18/2023, 5:30 PMpaulw
02/18/2023, 5:35 PMauth.getSession
in a nextjs app. I've raised an issue here 👉🏾 https://github.com/supabase/supabase/issues/12522
Any help or feedback would be greatly appreciated!ethanfox
02/18/2023, 5:38 PMbluetoothfx
02/18/2023, 5:57 PM