Skip to content

Commit

Permalink
Added testing app
Browse files Browse the repository at this point in the history
  • Loading branch information
lwjameson committed Jul 16, 2024
1 parent 3fccb59 commit e36c7ec
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test-email-signup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const Supa = require('@supabase/supabase-js');

const EMAIL = '[email protected]';

const main = async () => {
const supabase = await Supa.createClient(process.env.SUPABASE_TEST_HOST, process.env.SUPABASE_TEST_SERVICE_KEY);

const inviteResp = await supabase.auth.admin.inviteUserByEmail(EMAIL);

if (inviteResp.error) {
console.log('Failed to invite user ', EMAIL);
} else {
console.log('Success!!');
}
}

main();

0 comments on commit e36c7ec

Please sign in to comment.