mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
Add production Greenlight credentials example
This commit is contained in:
25
snippets/react-native/production.ts
Normal file
25
snippets/react-native/production.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import {
|
||||
type GreenlightCredentials,
|
||||
type NodeConfig,
|
||||
NodeConfigVariant
|
||||
} from '@breeztech/react-native-breez-sdk'
|
||||
|
||||
const productionNodeConfig = (): NodeConfig => {
|
||||
// ANCHOR: moving-to-production
|
||||
// Read your Greenlight credentials from secure storage
|
||||
const deviceKey: number[] = []
|
||||
const deviceCert: number[] = []
|
||||
const greenlightCredentials: GreenlightCredentials = {
|
||||
deviceKey,
|
||||
deviceCert
|
||||
}
|
||||
|
||||
const nodeConfig: NodeConfig = {
|
||||
type: NodeConfigVariant.GREENLIGHT,
|
||||
config: {
|
||||
partnerCredentials: greenlightCredentials
|
||||
}
|
||||
}
|
||||
// ANCHOR_END: moving-to-production
|
||||
return nodeConfig
|
||||
}
|
||||
Reference in New Issue
Block a user