fix(Supabase Node): Send token also via Authorization Bearer (#2814)

Send Authorization Bearer in headers
Fix typo in validateCredentials function
This commit is contained in:
Sergio
2022-03-25 10:41:53 -06:00
committed by GitHub
parent b9aa440be3
commit 5774dd8885
2 changed files with 5 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ import {
buildOrQuery,
buildQuery,
supabaseApiRequest,
validateCrendentials,
validateCredentials,
} from './GenericFunctions';
import {
@@ -106,7 +106,7 @@ export class Supabase implements INodeType {
credentialTest: {
async supabaseApiCredentialTest(this: ICredentialTestFunctions, credential: ICredentialsDecrypted): Promise<INodeCredentialTestResult> {
try {
await validateCrendentials.call(this, credential.data as ICredentialDataDecryptedObject);
await validateCredentials.call(this, credential.data as ICredentialDataDecryptedObject);
} catch (error) {
return {
status: 'Error',