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 { saveUser } from '@/lib/fetch/user' | |
import { NextAuthOptions } from 'next-auth' | |
import Spotify from 'next-auth/providers/spotify' | |
export const authOptions: NextAuthOptions = { | |
providers: [ | |
Spotify({ | |
clientId: process.env.SPOTIFY_CLIENT_ID!, | |
clientSecret: process.env.SPOTIFY_CLIENT_SECRET! | |
}) |
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
def hsl_to_hex(hue: int, saturation_percent: int, lightness_percent: int) -> str: | |
red, green, blue = hsl_to_rgb( | |
hue=hue, | |
saturation_percent=saturation_percent, | |
lightness_percent=lightness_percent, | |
) | |
return rgb_to_hex(red=red, green=green, blue=blue) |