---
title: "Discussion on \"Allowing users to invite others with Supabase Edge Functions\" | Hashnode"
description: "Discussion on \"Allowing users to invite others with Supabase Edge Functions\". In this blog post, we will discuss how to allow users to invite other users to your application using Supabase edge functions. We will focus on using custom claims and Supabase Edge Function to achieve this functionality.\nPrerequisites\nPlease ensure ..."
url: "https://hashnode.com/posts/allowing-users-to-invite-others-with-supabase-edge-functions/645baa91ddc45b5e40f77313"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Allowing users to invite others with Supabase Edge Functions](https://blog.mansueli.com/allowing-users-to-invite-others-with-supabase-edge-functions?utm_source=hashnode&utm_medium=feed)

In this blog post, we will discuss how to allow users to invite other users to your application using Supabase edge functions. We will focus on using custom claims and Supabase Edge Function to achieve this functionality. Prerequisites Please ensure ...

May 10, 2023 · 7 min read · blog.mansueli.com  
Updated Sep 20, 2023  
Read the article

-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#edge-functions](https://hashnode.com/tag/edge-functions)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#supabase](https://hashnode.com/tag/supabase)
-   [#custom-claims](https://hashnode.com/tag/custom-claims)

## Written by

[Rodrigo Mansueli](https://hashnode.com/@mansueli)

@mansueli

  
[View profile](https://hashnode.com/@mansueli)

Supabase Tips

Support Engineer @Supabase | StackOverflow

## Responses 1

Markdown supported · ⌘↵ to post

[Chris](https://hashnode.com/@smollito)

[Sep 9, 2023](https://hashnode.com/posts/allowing-users-to-invite-others-with-supabase-edge-functions/645baa91ddc45b5e40f77313/comment/64fc455c8b05f2b3821c2116)

I get 403 Error, user not logged in and User Data: undefined when i call the edge function. I don't know whats wrong, can you help with this?

[Chris](https://hashnode.com/@smollito)

[Sep 12, 2023](https://hashnode.com/posts/allowing-users-to-invite-others-with-supabase-edge-functions/645baa91ddc45b5e40f77313/comment/64fc455c8b05f2b3821c2116#reply-64ffee4ed3da8dcacfaa72cd)

[Rodrigo Mansueli](https://hashnode.com/@mansueli)

Thanks for your fast reply. Could this error come from calling the edge function from my local app instance? The edge function is already deployed on supabase live?

[Rodrigo Mansueli](https://hashnode.com/@mansueli)

[Sep 17, 2023](https://hashnode.com/posts/allowing-users-to-invite-others-with-supabase-edge-functions/645baa91ddc45b5e40f77313/comment/64fc455c8b05f2b3821c2116#reply-65073fff5b0b2cfbc5560596)

[Chris](https://hashnode.com/@smollito) if you are serving the function locally and running supabase locally, this should also work. I just tested this repo again and it is working here.

[Chris](https://hashnode.com/@smollito)

[Sep 22, 2023](https://hashnode.com/posts/allowing-users-to-invite-others-with-supabase-edge-functions/645baa91ddc45b5e40f77313/comment/64fc455c8b05f2b3821c2116#reply-650d3c12939d972b993248ec)

[Rodrigo Mansueli](https://hashnode.com/@mansueli)

Ok thanks a lot, i will try this again :)
