jopfre
02/14/2023, 6:35 PMFailed to send password recovery: failed to make recover request: Unable to process request
When I check the logs I see
column users.deleted_at does not exist
Everything works fine on the supabase instance I am migrating from so I believe the issue to be with the migration script or perhaps the new instance is now on a new version of some software?
Has anyone received this error before or have any ideas how to resolve?
https://github.com/supabase/supabase/discussions/12420JoshTheNerd
02/14/2023, 7:19 PMGautamArora
02/14/2023, 7:27 PMpackages/ui
directory with all the related libraries that were present in the old ui repository, right?TobiasBm
02/14/2023, 7:33 PMdart
StreamBuilder(
stream: streamProfiles,
builder: (context, snapData) {
print(snapData.data);
// I want to be able to do snapData.data.id, .title etc.. but I cant
return Text("ello world");
}),
I have a UserResponse object that I want it to map to.
The class looks like this:
dart
class UserRequest {
String id;
String firstname;
String lastname;
String email;
UserRequest(
{required this.id,
required this.email,
required this.firstname,
required this.lastname});
}
Just a simple class for now.
I hope somebody can provide me some insight on how to work proberly with streams.
Best regards Tobias!Domcario
02/14/2023, 8:28 PMorg a
and org b
, each with their own project 1
. org a's project 1 has 6 tables that i'd like to duplicate in structure (not contents, just columns fkey relations, delete cascade, etc...) to org b's project 1...is that possible?
i'm the owner of both organizations and both projectslawnday
02/14/2023, 9:12 PMauth.admin.createUser
.
3. The user gets an initial session back and has access to the app without having to log in via OTP
4. The next time the user comes back, they use the normal OTP sign in flow to sign back in
Step 3 is my problem. I really want my user to just be logged in when they first create their account, but I can't figure out any way to do that with a OTP flow. Are there any workarounds for this?eshnil
02/14/2023, 9:26 PMDeno.env.get('JWT_SECRET')
or does it have to be set up manually?
- Since I will be creating the complete JWT myself, what claims are necessary? For eg: do I have to have "role": "authenticated"
in the JWT? I don't want to give the API key full access to the user.Tempest
02/14/2023, 10:51 PMSELECT current_user;
returns postgres, so postgres is the current_user.
I've tried granting so many permissions, and they returned as a success and I still get permission denied when trying to insert data into the tables under public.
I'm able to create the tables under public just fine though, I'm also the owner of the project.
I have tried nearly every solution from google and from cntrl-f'ing similar problems in this discord and nothing is working, only solution I see is to just remake the entire project which is something I'd like to avoid
any suggestions?stefikira
02/14/2023, 11:05 PMawait supabase.from(_table).select<PostgrestList>('''
'''
Rasta
02/14/2023, 11:22 PMimport { AuthApiError } from "@supabase/supabase-js"
import { fail, redirect } from "@sveltejs/kit"
export const actions = {
register: async ({ request, locals }) => {
const body = Object.fromEntries(await request.formData())
const { data, error: err } = await locals.sb.auth.signUp({
email: body.email,
password: body.password,
})
if (err) {
if (err instanceof AuthApiError && err.status === 400) {
return fail(400, {
error: "Invalid email or password",
})
}
return fail(500, {
error: "Server error. Please try again later.",
})
}
throw redirect(303, "/")
},
}
am i missing something?Marius.Dmn
02/14/2023, 11:43 PMjulo
02/14/2023, 11:54 PMprovider_refresh_token
in order to refresh the provider_token
when it expires. This makes sense to me.
However, I am noticing that when I sign in with google (via signInWithOAuth({ provider: 'google' })
), the Session returns a null provider_refresh_token
, so it is not possible for me to fetch a new provider token.
Is this expected behaviour?ali
02/15/2023, 1:16 AMWolfroseWe
02/15/2023, 1:19 AMExplorer
02/15/2023, 3:37 AMpckimlong
02/15/2023, 3:44 AMFILE_SIZE_LIMIT=52428800
But It's seem not workedrchrdnsh
02/15/2023, 4:00 AMjs
let bucket;
const getBucket = async () => {
try {
loading = true
const { data, error } = await supabase.storage.getBucket('avatars')
if (data) {
bucket = data
console.log(`Bucket: `, bucket)
}
if (error) throw error
} catch (error) {
if (error instanceof Error) {
failure(error.message)
}
} finally {
loading = false
}
}
onMount(() => {
getBucket()
})
...but i keep getting the error:
The resource was not found
...I can't find any documentation or resources beyond the docs which only gives the basic function, so not sure what to do...invig
02/15/2023, 8:10 AMDeChill
02/15/2023, 8:38 AMhoj
02/15/2023, 8:45 AMJacobCoRo
02/15/2023, 9:25 AMimport { useSupabaseClient } from '@supabase/auth-helpers-react';
When we call auth.signInWithPassword
how long does the token last? I only see one cookie in the browser supabase-auth-token
Does that include both a refresh and session token? I see an option in the dashboard to change the session duration. But how long does the refresh token last and where can I set that?SimonPotvin
02/15/2023, 11:08 AMdev Joakim Pedersen
02/15/2023, 11:21 AM"Could not find the public.dev_get_filtered_products(a, b, pbrand, pname, ptype, sid) function or the public.dev_get_filtered_products function with a single unnamed json or jsonb parameter in the schema cache"
Had it several times before with other RPC's but then they did not work. what is funny about this one is that it works. I got one for "dev" and one for prod. and they do work on frontend just like they should
I have reloaded schema cache. I have also deleted the function and added it again since sometimes that have been the trick.
But alas this error is there. a bit annoying having this red text here.
I also checked if my parameters are in the right order. but not that either 😕gintruxx
02/15/2023, 12:48 PMHugos
02/15/2023, 1:16 PMts
import { Chess } from 'npm:chess.js@0.13.4';
When trying to use this I get the following error:
ts
error: Uncaught (in promise) Error: Module not found "npm:chess.js@0.13.4".
const ret = new Error(getStringFromWasm0(arg0, arg1));
^
at __wbg_new_8d2af00bc1e329ee (https://deno.land/x/eszip@v0.30.0/eszip_wasm.generated.js:312:19)
at <anonymous> (https://deno.land/x/eszip@v0.30.0/eszip_wasm_bg.wasm:1:79439)
at <anonymous> (https://deno.land/x/eszip@v0.30.0/eszip_wasm_bg.wasm:1:1388039)
at <anonymous> (https://deno.land/x/eszip@v0.30.0/eszip_wasm_bg.wasm:1:1862894)
at __wbg_adapter_18 (https://deno.land/x/eszip@v0.30.0/eszip_wasm.generated.js:146:6)
at real (https://deno.land/x/eszip@v0.30.0/eszip_wasm.generated.js:130:14)
Is it possible to use npm packages in here?jj_sessa
02/15/2023, 3:26 PMHo3einvb
02/15/2023, 3:38 PMrbl
02/15/2023, 3:55 PMGrimmjoww231
02/15/2023, 3:56 PMSmiley
02/15/2023, 4:05 PM