Back to All

while initialising Gateway using ScgatewayFlutterPlugin unable to getting the smallcaseAuthid

Hi Team,

I am unable to get the smallcaseAuthid after the user login is completed. jwtToken and transactionId i am getting through the server.

I am getting the response like the below data; in this, there is no smallcaseAuthid

{"data":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzbWFsbGNhc2VBdXRoSWQiOiI2NDgxNzZlZTNjMGEyNmUyMjc5ZGNhNmQiLCJpYXQiOjE3MTE0NDIyNzAsImV4cCI6MTcxMTQ0NTg3MH0.1WBIV9SO28OqL8WzySCOMITDWVlGCzP5VxRQPUPdo7s","broker":"kite","success":true,"transaction":"HOLDINGS_IMPORT"}

await ScgatewayFlutterPlugin.setConfigEnvironment(
GatewayEnvironment.PRODUCTION, "my_gateway", true, []);
// Initialize Gateway with authToken
try {
await ScgatewayFlutterPlugin.initGateway("$jwtToken");
await ScgatewayFlutterPlugin.triggerGatewayTransaction(transactionId).then((value) {
print("ScgatewayFlutterPlugin value:: $value");
}).catchError((error) {
print('Error fetching ScgatewayFlutterPlugin data: $error');
});

} catch (e) {
print('Error initializing gateway: $e');
}