Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

447 B
Raw Blame
import { purchaseReturnPath } from '../utils/plan-purchase'
export function useCloudAuthDestination() {
  const route = useRoute()
  const destination = computed(
    () => purchaseReturnPath(route.query.next) ?? '/workspace',
  )
  function authLink(path: '/signin' | '/signup' | '/forgot-password') {
    const next = purchaseReturnPath(route.query.next)
    return { path, query: next ? { next } : {} }
  }
  return { destination, authLink }
}