this repo has no description
1import { NativeModule, requireNativeModule } from 'expo'
2
3import { ExpoAtprotoAuthModuleEvents, JWK } from './ExpoAtprotoAuth.types'
4import { VerifyOptions, VerifyResult } from '@atproto/oauth-client'
5
6declare class ExpoAtprotoAuthModule extends NativeModule<ExpoAtprotoAuthModuleEvents> {
7 digest(data: Uint8Array, algo: string): Uint8Array
8 getRandomValues(byteLength: number): Uint8Array
9 generatePrivateJwk(algorithim: string): JWK
10 createJwt(header: string, payload: string, jwk: JWK): string
11 verifyJwt(token: string, jwk: JWK, options: VerifyOptions): VerifyResult
12}
13
14// This call loads the native module object from the JSI.
15export default requireNativeModule<ExpoAtprotoAuthModule>('ExpoAtprotoAuth')