Scott P
08/26/2021, 7:32 PMts
export interface ISupabaseDeepLink {
access_token: string;
expires_in: string;
refresh_token: string;
token_type: string;
type: string;
}
function hashToObject(entries) {
const result = {};
for (const [key, value] of entries) {
result[key] = value;
}
return result;
}
const params = new URLSearchParams(window.location.hash.replace("#", ""));
const parsedParams: ISupabaseDeepLink = hashToObject(
params
) as ISupabaseDeepLink;
if (parsedParams.type === "recovery") {
// password reset
}
if (parsedParams.type === "magiclink") {
// Magic link login
}
if (parsedParams.type === "invite") {
// User invited via API/Dashboard
}
inner programmer
08/26/2021, 11:53 PMstibbs
08/27/2021, 12:06 AMstibbs
08/27/2021, 12:07 AMstibbs
08/27/2021, 12:08 AMinner programmer
08/27/2021, 12:17 AMinner programmer
08/27/2021, 12:17 AMwilfredinni
08/27/2021, 9:45 PMwilfredinni
08/27/2021, 9:50 PMjavascript
{
user: payload.user,
movement_type: payload.movement_type,
wallet: payload.wallet,
movement_category: [1, 2] //itermediate table,
amount: payload.amount,
description: payload.description,
attached_file: payload.attached_file,
importance: payload.importance,
updated_at: payload.updated_at
}
wilfredinni
08/27/2021, 11:51 PMwilfredinni
08/27/2021, 11:51 PMSteve
08/27/2021, 11:54 PMwilfredinni
08/27/2021, 11:59 PMGarrett Tolbert
08/28/2021, 1:16 AMverifyOTP()
, I get the following error: new row violates row-level security policy for table "profiles"
Below are my policies, how can i fix this?ppikachu
08/28/2021, 6:37 AMlet { data: user_presets, error } = await $supabase
.from('user_presets')
.select('preset_name, preset, id, visualsas(slug)')
.filter('visualsas.slug', 'eq', 'pixi')
The output, instead of filtering and returning the one with the blue arrow it's returning all rows...🤯Dylon
08/28/2021, 7:24 AMsupabase.auth.signIn()
?larryM
08/28/2021, 1:47 PM{
"code": 400,
"msg": "Could not read refresh token grant params: EOF"
}
Jacob Unknown
08/28/2021, 4:32 PM.update()
actually work? I'm reading the documentation, but I can't understand how it's supposed to work.silentworks
08/28/2021, 7:17 PMJacob Unknown
08/28/2021, 7:19 PMSteve
08/28/2021, 10:09 PMRichCorbs
08/29/2021, 12:45 AMtinjaw
08/29/2021, 2:42 AMburggraf
08/29/2021, 2:51 AMBiondi Bagasta Wiko Putra
08/29/2021, 2:55 AMERROR Error: Uncaught (in promise): Object: {"message":"Error sending confirmation mail","status":500}
supabase.service :
ts
async signUp(credentials: { email: string, password: string }) {
return new Promise(async (resolve, reject) => {
const { error, data } = await this.supabase.auth.signUp(credentials);
if(error) {
reject(error);
} else {
resolve(data);
}
})
}
loginPage.ts :
ts
signUp() {
console.log(this.loginForm.getRawValue());
this.supabaseAuthService.signUp(this.loginForm.getRawValue()).then(data => {
console.log(data);
})
}
my form value :
Object { email: "admin@gmail.com", password: "admin123" }
I'm just copying this code from my other project which is work, but why this code doesn't work on my new project......burggraf
08/29/2021, 3:07 AMBiondi Bagasta Wiko Putra
08/29/2021, 3:08 AMRichCorbs
08/29/2021, 3:08 AMburggraf
08/29/2021, 3:09 AMRichCorbs
08/29/2021, 3:10 AM