feat: basic oauth
This commit is contained in:
parent
72b13f5265
commit
7ab17001f0
16 changed files with 199 additions and 106 deletions
11
composables/cookies.ts
Normal file
11
composables/cookies.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { DEFAULT_SERVER } from '~/constants'
|
||||
|
||||
export function useAppCookies() {
|
||||
const server = useCookie('nuxtodon-server', { default: () => DEFAULT_SERVER })
|
||||
const token = useCookie('nuxtodon-token')
|
||||
|
||||
return {
|
||||
server,
|
||||
token,
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue