-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into kevin_cai/Add_schema_to_supabase
- Loading branch information
Showing
4 changed files
with
68 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
module.exports = { | ||
extends: ["@calblueprint/eslint-config-react"], | ||
rules: { | ||
// Add any custom rules here | ||
// Disable the rule that requires React to be in scope -- we don't need this with React 18 | ||
'react/react-in-jsx-scope': 'off', | ||
'react/jsx-uses-react': 'off', | ||
}, | ||
}; | ||
extends: ["@calblueprint/eslint-config-react"], | ||
rules: { | ||
// Add any custom rules here | ||
// Disable the rule that requires React to be in scope -- we don't need this with React 18 | ||
'react/react-in-jsx-scope': 'off', | ||
'react/jsx-uses-react': 'off', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* eslint-disable */ | ||
|
||
import supabase from '../createClient'; | ||
|
||
export const handleSignUp = async (email: string, password: string) => { | ||
const { data, error } = await supabase.auth.signUp({ | ||
email, | ||
password, | ||
}); | ||
console.log(error); | ||
}; | ||
|
||
export const signInWithEmail = async (email: string, password: string) => { | ||
const { data, error } = await supabase.auth.signInWithPassword({ | ||
email, | ||
password, | ||
}); | ||
console.log(data); | ||
}; | ||
|
||
export const signOut = async () => { | ||
const { error } = await supabase.auth.signOut(); | ||
}; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters