Rename utils
to lib
(#29651)
Rename all instances of `utils` to `lib` in this example to maintain consistency with other examples.
This commit is contained in:
parent
aeafca2b64
commit
8eec49208f
6 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
import { Auth } from '@supabase/ui'
|
||||
import { supabase } from '../utils/initSupabase'
|
||||
import { supabase } from '../lib/initSupabase'
|
||||
import './../style.css'
|
||||
|
||||
export default function MyApp({ Component, pageProps }) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* NOTE: this file is only needed if you're doing SSR (getServerSideProps)!
|
||||
*/
|
||||
import { supabase } from '../../utils/initSupabase'
|
||||
import { supabase } from '../../lib/initSupabase'
|
||||
|
||||
export default function handler(req, res) {
|
||||
supabase.auth.api.setAuthCookie(req, res)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { supabase } from '../../utils/initSupabase'
|
||||
import { supabase } from '../../lib/initSupabase'
|
||||
|
||||
// Example of how to verify and get user data server-side.
|
||||
const getUser = async (req, res) => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import Link from 'next/link'
|
||||
import useSWR from 'swr'
|
||||
import { Auth, Card, Typography, Space, Button, Icon } from '@supabase/ui'
|
||||
import { supabase } from '../utils/initSupabase'
|
||||
import { supabase } from '../lib/initSupabase'
|
||||
import { useEffect, useState } from 'react'
|
||||
|
||||
const fetcher = (url, token) =>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Link from 'next/link'
|
||||
import { Card, Typography, Space } from '@supabase/ui'
|
||||
import { supabase } from '../utils/initSupabase'
|
||||
import { supabase } from '../lib/initSupabase'
|
||||
|
||||
export default function Profile({ user }) {
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue