arzy
04/15/2022, 10:31 PMconst signInWithDiscord = async () => {
const { user, session, error } = await supabase.auth.signIn({
provider: 'discord',
})
console.log(user,session,error)
}
this to fire on button click but the page switches to the login page and loses track of user, session and errorDeadlyDev
04/16/2022, 12:47 AMprototype
04/16/2022, 1:08 AMakito
04/16/2022, 4:15 AMgetSignedObject
only returns the hash which means it should be possible, but I'm not really sure since I'm not familiar with bucketsmadleo
04/16/2022, 8:23 AMakito
04/16/2022, 9:05 AMjaitaiwan
04/16/2022, 2:20 PMInvader
04/16/2022, 5:15 PMInvader
04/16/2022, 5:15 PMMuezz
04/16/2022, 7:31 PMDataModel
into a json document using a toMap()
method defined by me. I pass that document to the insert statement like this:
dart
addTransaction(DataModel data) {
var response = _databaseService
.insert(
data.toMap(),
)
.execute();
return response;
}
I want to do the same thing but in a Stored Procedure
like this:
dart
addTransaction(DataModel data) {
var response = _databaseService
.rpc(
data.toMap(),
)
.execute();
return response;
}
What would be the name of the object type while defining this function? I cannot find json in the intellisense. The reason I want to do this is to be able to add some data from the json document in one table and the rest of the data in another table in one go.barry
04/16/2022, 10:20 PMNeedle
04/16/2022, 11:19 PM/title
command!
We have solved your problem?
Click the button below to archive it.akito
04/17/2022, 12:32 AM{"timestamp":0,"accesses":0}
but I would like to set that timestamp to the current UNIX timestamp when a row is created through a triggerGamalliel_Sharon
04/17/2022, 4:35 AMHeni
04/17/2022, 5:05 AMomri
04/17/2022, 12:57 PMpetere/pguri
on github.
i posted on the suggestions/voting thread, just wanted to know what the chances are that it'll get accepted relatively quickly (since it isn't something as big as, say, plv8).emjay
04/17/2022, 1:37 PMgaryy
04/17/2022, 1:44 PMnieldv
04/17/2022, 3:43 PMusamichizuru
04/17/2022, 4:36 PMisaacm
04/17/2022, 5:02 PMError [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
does the supabase client sometimes send a res? am i double sending a response in here?Derek
04/17/2022, 5:13 PMDerek
04/17/2022, 5:13 PMsudo killall windows
04/17/2022, 7:35 PMjson
{
"message": "permission denied for table http_request_queue",
"code": "42501",
"details": null,
"hint": null
}
appurist
04/17/2022, 9:55 PMappurist
04/17/2022, 9:57 PMCipherCode
04/17/2022, 11:01 PMbenten
04/18/2022, 12:47 AMBumontheRun
04/18/2022, 3:28 AMstnmonroe
04/18/2022, 4:30 AMJWT Expired
if I'm using the app for over an hour. This is the hook being used to attempt to update the user credentials as needed, but it doesn't work. Am I doing something wrong?
js
import { supabase } from '@root/services/supabase';
import { useSignIn } from '@root/api/auth/mutations';
import { useAuthState } from '@root/state/useAuthState';
import { useMount } from 'react-use';
export const useUpdateOnAuthStateChange = () => {
const { session: localSession, setSession, clearSession } = useAuthState();
const { mutate: signIn } = useSignIn({
onError: (error) => console.error(error),
});
useMount(() => {
if (localSession?.refresh_token) {
signIn({ refreshToken: localSession.refresh_token });
}
});
useMount(() => {
setSession(supabase.auth.session());
supabase.auth.onAuthStateChange((_event, session) => {
console.log('_event :>> ', _event);
console.log('session :>> ', session);
if (!!session) {
setSession(session);
} else {
clearSession();
}
});
window.onstorage = (e) => {
if (e.key === 'supabase.auth.token') {
const newSession = JSON.parse(e.newValue);
setSession(newSession?.currentSession);
}
};
});
};