diff options
Diffstat (limited to 'src/platform/auth-flow.ts')
-rw-r--r-- | src/platform/auth-flow.ts | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/platform/auth-flow.ts b/src/platform/auth-flow.ts deleted file mode 100644 index fbc85a373..000000000 --- a/src/platform/auth-flow.ts +++ /dev/null @@ -1,19 +0,0 @@ -import * as auth from '@adxp/auth' -import * as ucan from 'ucans' -import {makeAppUrl} from '../platform/urls' -import {ReactNativeStore} from '../state/lib/auth' -import * as env from '../env' - -export async function requestAppUcan( - authStore: ReactNativeStore, - scope: ucan.Capability, -) { - const did = await authStore.getDid() - const returnUrl = makeAppUrl() - const fragment = auth.requestAppUcanHashFragment(did, scope, returnUrl) - const url = `${env.AUTH_LOBBY}#${fragment}` - - // @ts-ignore window is defined -prf - window.location.href = url - return false -} |