module Garden::Supabase

Defined in:

supabase.cr

Constant Summary

JWT_SECRET = ENV["SUPABASE_JWT"]
PROJECT = ENV["SUPABASE_PROJECT"]
SERVICE_KEY = ENV["SUPABASE_KEY"]
SERVICES = ["google", "discord", "gravatar"]

Class Method Summary

Class Method Detail

def self.get_user(id : UUID) : User #

[View source]
def self.resolve_avatar_source(user : User, service : String) : String | Nil #

[View source]
def self.verify_auth(token : String, ctx : HTTP::Server::Context) : UUID | Nil #

[View source]