Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 653 Bytes

File metadata and controls

29 lines (19 loc) · 653 Bytes

Auth Example

This example shows how to use the Auth resource in growwapi for authentication and token management.


1. Generate Token

    const token = await groww.Auth.generateToken();
    console.log('Access Token:', token.accessToken);

2. Refresh Token

const refreshed = await groww.Auth.refreshToken();
console.log('Refreshed Token:', refreshed.accessToken);

Tips

  • Ensure you have initialized the SDK and set required environment variables.
  • All methods are asynchronous and return strongly typed responses.
  • For more details, refer to the API documentation.