Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

authClientMetadata.ts

12 lines446 Bytes

1import type { AuthClientPresentationMetadata } from "@t3tools/contracts";
2import { Platform } from "react-native";
3​
4export function authClientMetadata(appVersion?: string): AuthClientPresentationMetadata {
5 return {
6 label: "T3 Code Mobile",
7 deviceType: "mobile",
8 ...(Platform.OS === "ios" ? { os: "iOS" } : Platform.OS === "android" ? { os: "Android" } : {}),
9 surface: "mobile",
10 ...(appVersion ? { appVersion } : {}),
11 };