Skip to content

Commit ec84c2c

Browse files
committed
Add JWT constants to Common Defines
* Add `OSUD_USE_IDENTITY_VERIFICATION` flag to OneSignalCommonDefines
1 parent 7af6373 commit ec84c2c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

iOS_SDK/OneSignalSDK/OneSignalCore/Source/OneSignalCommonDefines.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@
7777
// Remote Params
7878
#define OSUD_LOCATION_ENABLED @"OSUD_LOCATION_ENABLED"
7979
#define OSUD_REQUIRES_USER_PRIVACY_CONSENT @"OSUD_REQUIRES_USER_PRIVACY_CONSENT"
80+
81+
/* Identity Verification */
82+
// TODO: JWT 🔐 Figure out the key below and may need to relate to existing key IOS_REQUIRES_USER_ID_AUTHENTICATION
83+
#define OSUD_USE_IDENTITY_VERIFICATION @"OSUD_USE_IDENTITY_VERIFICATION"
84+
#define OS_JWT_BEARER_TOKEN @"OS_JWT_BEARER_TOKEN"
85+
#define OS_JWT_TOKEN_INVALID @"OS_JWT_TOKEN_INVALID"
86+
8087
// Remote Params - Receive Receipts
8188
#define OSUD_RECEIVE_RECEIPTS_ENABLED @"OS_ENABLE_RECEIVE_RECEIPTS" // * OSUD_RECEIVE_RECEIPTS_ENABLED
8289
// Outcomes
@@ -128,7 +135,7 @@
128135
#define IOS_USES_PROVISIONAL_AUTHORIZATION @"uses_provisional_auth"
129136
#define IOS_REQUIRES_EMAIL_AUTHENTICATION @"require_email_auth"
130137
#define IOS_REQUIRES_SMS_AUTHENTICATION @"require_sms_auth"
131-
#define IOS_REQUIRES_USER_ID_AUTHENTICATION @"require_user_id_auth"
138+
#define IOS_REQUIRES_USER_ID_AUTHENTICATION @"require_user_id_auth" // TODO: JWT 🔐 Figure out the key, also think about needing to migrate this value
132139
#define IOS_RECEIVE_RECEIPTS_ENABLE @"receive_receipts_enable"
133140
#define IOS_OUTCOMES_V2_SERVICE_ENABLE @"v2_enabled"
134141
#define IOS_LOCATION_SHARED @"location_shared"

0 commit comments

Comments
 (0)