This file contains 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 { NextResponse } from 'next/server' | |
import type { NextRequest } from 'next/server' | |
import { supabaseClient } from '../supabase' | |
export const config = { | |
matcher: ['/auth/routes/:function*'], | |
} | |
const loginUrl = new URL('/login', request.url) | |
// Add ?from=/incoming-url to the /login URL | |
loginUrl.searchParams.set('from', request.nextUrl.pathname) |
This file contains 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
/* eslint-disable react-native/no-inline-styles */ | |
import React, { FC } from "react" | |
import { WebView } from "react-native-webview" | |
import { View } from "native-base" | |
export const KYC: FC<any> = ({ navigation }) => { | |
const remoteScriptUrl = "https://dashboard.qoreid.com/qoreid-sdk/qoreid.js" | |
// Use the injectedJavaScriptBeforeContentLoaded to load the script |