Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2022-11-07 16:25:13 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ed1fd26af0507d04d8da20f2f51dd32212d75bca
ed1fd26a
1 parent
d49c2484
fix refreshToken crash
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.m
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.m
View file @
ed1fd26
...
...
@@ -1058,17 +1058,20 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
{
if
([
_db
tableExists
:
@"requestVariables"
]
==
YES
)
{
FMResultSet
*
refreshTokenSet
=
[
_db
executeQuery
:
@"SELECT refresh_token FROM requestVariables WHERE id = 1;"
];
NSString
*
refreshToken
=
[
NSString
alloc
];
// NSString *refreshToken = [NSString alloc];
NSString
*
refreshToken
=
@""
;
while
([
refreshTokenSet
next
])
{
refreshToken
=
[[
refreshTokenSet
resultDictionary
][
@"refresh_token"
]
stringValue
];
}
FMResultSet
*
clientIdSet
=
[
_db
executeQuery
:
@"SELECT client_id FROM requestVariables WHERE id = 1;"
];
NSString
*
clientId
=
[
NSString
alloc
];
// NSString *clientId = [NSString alloc];
NSString
*
clientId
=
@""
;
while
([
clientIdSet
next
])
{
clientId
=
[[
clientIdSet
resultDictionary
][
@"client_id"
]
stringValue
];
}
FMResultSet
*
clientSecretSet
=
[
_db
executeQuery
:
@"SELECT client_secret FROM requestVariables WHERE id = 1;"
];
NSString
*
clientSecret
=
[
NSString
alloc
];
// NSString *clientSecret = [NSString alloc];
NSString
*
clientSecret
=
@""
;
while
([
clientSecretSet
next
])
{
clientSecret
=
[[
clientSecretSet
resultDictionary
][
@"client_secret"
]
stringValue
];
}
...
...
@@ -1109,17 +1112,20 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
{
if
([
_db
tableExists
:
@"requestVariables"
]
==
YES
)
{
FMResultSet
*
refreshTokenSet
=
[
_db
executeQuery
:
@"SELECT refresh_token FROM requestVariables WHERE id = 1;"
];
NSString
*
refreshToken
=
[
NSString
alloc
];
// NSString *refreshToken = [NSString alloc];
NSString
*
refreshToken
=
@""
;
while
([
refreshTokenSet
next
])
{
refreshToken
=
[[
refreshTokenSet
resultDictionary
][
@"refresh_token"
]
stringValue
];
}
FMResultSet
*
clientIdSet
=
[
_db
executeQuery
:
@"SELECT client_id FROM requestVariables WHERE id = 1;"
];
NSString
*
clientId
=
[
NSString
alloc
];
// NSString *clientId = [NSString alloc];
NSString
*
clientId
=
@""
;
while
([
clientIdSet
next
])
{
clientId
=
[[
clientIdSet
resultDictionary
][
@"client_id"
]
stringValue
];
}
FMResultSet
*
clientSecretSet
=
[
_db
executeQuery
:
@"SELECT client_secret FROM requestVariables WHERE id = 1;"
];
NSString
*
clientSecret
=
[
NSString
alloc
];
// NSString *clientSecret = [NSString alloc];
NSString
*
clientSecret
=
@""
;
while
([
clientSecretSet
next
])
{
clientSecret
=
[[
clientSecretSet
resultDictionary
][
@"client_secret"
]
stringValue
];
}
...
...
@@ -1160,17 +1166,20 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
{
if
([
_db
tableExists
:
@"requestVariables"
]
==
YES
)
{
FMResultSet
*
refreshTokenSet
=
[
_db
executeQuery
:
@"SELECT refresh_token FROM requestVariables WHERE id = 1;"
];
NSString
*
refreshToken
=
[
NSString
alloc
];
// NSString *refreshToken = [NSString alloc];
NSString
*
refreshToken
=
@""
;
while
([
refreshTokenSet
next
])
{
refreshToken
=
[[
refreshTokenSet
resultDictionary
][
@"refresh_token"
]
stringValue
];
}
FMResultSet
*
clientIdSet
=
[
_db
executeQuery
:
@"SELECT client_id FROM requestVariables WHERE id = 1;"
];
NSString
*
clientId
=
[
NSString
alloc
];
// NSString *clientId = [NSString alloc];
NSString
*
clientId
=
@""
;
while
([
clientIdSet
next
])
{
clientId
=
[[
clientIdSet
resultDictionary
][
@"client_id"
]
stringValue
];
}
FMResultSet
*
clientSecretSet
=
[
_db
executeQuery
:
@"SELECT client_secret FROM requestVariables WHERE id = 1;"
];
NSString
*
clientSecret
=
[
NSString
alloc
];
// NSString *clientSecret = [NSString alloc];
NSString
*
clientSecret
=
@""
;
while
([
clientSecretSet
next
])
{
clientSecret
=
[[
clientSecretSet
resultDictionary
][
@"client_secret"
]
stringValue
];
}
...
...
Please
register
or
login
to post a comment