letourpowerscombine
10/22/2021, 8:46 AMTito
10/22/2021, 2:58 PMTito
10/22/2021, 3:55 PMOPTIONS
http://192.168.1.12/auth/v1/signup
Status
403
Forbidden
VersionHTTP/1.1
Transferred123 B (0 B size)
Referrer Policystrict-origin-when-cross-origin
Tito
10/22/2021, 6:54 PMjonny
10/22/2021, 7:29 PMBBB
10/22/2021, 8:27 PMsilentworks
10/22/2021, 9:16 PMHarryET
10/22/2021, 11:10 PMHarryET
10/23/2021, 9:53 AMgaryaustin
10/23/2021, 2:25 PMHarryET
10/23/2021, 2:25 PMBBB
10/23/2021, 2:53 PMlarryM
10/23/2021, 3:52 PMYelloJello
10/23/2021, 5:42 PMHarryET
10/23/2021, 5:42 PMYelloJello
10/23/2021, 5:42 PMYelloJello
10/23/2021, 5:47 PMlarryM
10/23/2021, 5:58 PMYelloJello
10/23/2021, 6:07 PMSeñor Bruno
10/23/2021, 6:27 PMgaryaustin
10/23/2021, 6:36 PMwachira
10/24/2021, 12:44 AMjavascript
async function signIn() {
const { error, data } = await supabase.auth.signIn(
{
email,
},
{
redirectTo: "http://localhost:3000/verify",
}
);
if (error) {
console.log({ error });
} else {
setSubmitted(true);
}
}
The email is sent out successfully but I have a problem with the redirect link, somehow supabase is adding a #
to the url, so am getting
http://localhost:3000/verify#access_token=<ACCESS_TOKEN>&expires_in=3600&refresh_token=<REFRESH_TOKEN>&token_type=bearer&type=magiclink
instead of
http://localhost:3000/verify?access_token=<ACCESS_TOKEN>&expires_in=3600&refresh_token=<REFRESH_TOKEN>&token_type=bearer&type=magiclink
silentworks
10/24/2021, 12:56 AMPsymin
10/24/2021, 6:11 AMHarryET
10/24/2021, 9:10 AMsql
CREATE OR REPLACE FUNCTION
public.message_insert_bot_trigger_fnc()
RETURNS TRIGGER AS
$$
DECLARE
bot bot_members%rowtype;
bot_http_response http_response;
BEGIN
FOR bot IN
SELECT *
FROM bot_members as member
WHERE member.chat_id = NEW.chat_id
AND member.interactions_url IS NOT NULL
LOOP
SELECT *
INTO bot_http_response
FROM http((
'POST',
bot.interactions_url,
ARRAY [http_header('X-Version'::varchar, 'v1'::varchar), http_header('X-Bot-ID'::varchar, bot.id::varchar)],
'{"type": 1,"data": {"id": "' || NEW.id::varchar || '","content": "' || NEW.content || '","user_id": "' || NEW.user_id::varchar || '","chat_id": "' || NEW.chat_id::varchar || '"}}',
'application/json'
)::http_request);
-- Do something with returned data!
END LOOP;
RETURN NEW;
END;
$$ LANGUAGE plpgsql SECURITY DEFINER;
HarryET
10/24/2021, 9:10 AM{
"hint": null,
"message": "control reached end of trigger procedure without RETURN",
"code": "2F005",
"details": null
}
HarryET
10/24/2021, 9:10 AMVuNguyen
10/24/2021, 1:01 PMmovies
table, if I want to have a column that has an array of other movies foreign key, I have to create another table, I'll name it relations
.
Now, If I want to query a movie from movies
table, also all it's relations. What should I do?
I assume I have to make two calls
js
let { data: movie, error } = await supabase
.from('anime')
.select('*')
let {data: relation, error } = await supabase
.from("relations")
.eq("movie_id", movie.id)
.select("*")
// Is this a right way to do it?
Thank youkresimirgalic
10/24/2021, 7:55 PMkawallis
10/24/2021, 9:53 PM