Issues with Lark integration - does not refresh token for authorization

Hi

I have started using the Lark integration. I got it to work but I noticed that the instructions for integrating are not complete. When I authorize and get a token with Lark, using App ID and Secret, Lark only gives a short lived token. It should give Latenode a refresh token to extend or renew the token. Otheriwise I need to manually re-authorize all the time which is not workable for an automated workflow. Can you check with Lark docs how to implement renewal of token so that the connection persists

2 Likes

Hi!
We have a fully verified integration with them through OAuth2. Just log in with two clicks, and there’s nothing more you need to do.


The option you mentioned is also a complete authorization through OAuth2, but it requires you to create your own application in their developer section.


This method will also consistently and accurately support your authorization, ensuring it always works.

But this doesn’t make sense, as we have full official authorization. Therefore, please use the first option.

1 Like

Using Oauth 2.0 doesnt work. I get an " You don’t have the access to “Latenode”

You are currently logged in as , the following accounts have no permission to authorize login, you can use another account to login"

I contacted Lark and this is what they said

1 Like

1 Like

From Lark Support

1 Like

Thank you for all these details. We will test the connection to Lark in every possible way

1 Like

any update please? on how to integrate with Lark?

Hello, the official integration app is currently awaiting approval. In the meantime, you can authorize through a personal app.

Here are the detailed instructions:

  1. Go to the Lark Developer Console: https://open.larksuite.com/app
  2. Click Create Custom App and create an app.
  3. In Permissions & Scopes, add all User Scopes or select:

calendar:calendar | task:task:write | contact:contact.base:readonly | task:tasklist:read | contact:user.base:readonly | task:section:read | contact:user.employee_id:readonly | im:chat | im:chat:read | im:chat:readonly

  1. In Security Settings, add the Redirect URL: https://app.latenode.com/redirected/index.html
  2. In Credentials & Basic Info, get the App ID and App Secret, then enter them below.

This process takes literally about a minute and a half.

Here’s a step-by-step walkthrough.

1 Like

Great will try it out

1 Like

Hi a personal Lark App is not selectable as an option when building a Scenario

1 Like

Personal Lark App doesnt seem selectable when the action is List Group Chats or Post to Group Chat.

It only seems to work on Calendar and Tasks.

Even though I added Chat to Scopes and Permissions

1 Like

Thank you! I have passed this on to the development team.

1 Like

Any update here please?

Hi @bogshot
Sorry for late reply.
Ksenia from Integrations Development is here.
Currently our official Lark application is still under verification with Lark, so this is not very fast and easy process to get our app verified and confirmed.
As far from this - had you tried to use Personal Account Oauth flow, what difficulties are you struggling in here?

1 Like

If you end up rolling with the personal app workaround for Lark, I found it helps to script a tiny JS node that pings the token endpoint a bit before expiry and stores the fresh token in a variable node. It feels a bit hacky, but it keeps flows from stalling. The new menu update in Latenode actually makes hopping between these nodes a lot smoother, so at least the setup pain is lighter.