This file contains hidden or 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
import { deferred } from "https://deno.land/[email protected]/async/deferred.ts"; | |
import { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts"; | |
import { createClient } from "https://esm.sh/v129/@supabase/[email protected]/denonext/supabase-js.mjs"; | |
import env from "../_shared/test-env.ts"; | |
async function testChannelComms() { | |
const anonClient = createClient(env.SUPABASE_URL, env.SUPABASE_ANON_KEY) | |
const channel = anonClient.channel('test-channel') | |
const done = deferred<void>() |
This file contains hidden or 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
import { createClient as createSupabaseClient } from 'supabase-js' | |
import { Database } from '../_shared/supabase.ts' | |
import env from './env.ts' | |
/** | |
* Create a Supabase anon client that uses the Authorization header from the request | |
* to authenticate with Supabase. | |
*/ | |
export function createAuthorizedClient(request: Request) { | |
return createSupabaseClient<Database>( |
This file contains hidden or 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
<link rel="import" href="../topeka-elements/category-icons.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |