You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
even though getRegistrationPayload is called before that.
When I log out & log in again, it is called correctly:
{ services: {
nextcloud: {
...
}}}
To Reproduce
constaccountsServer=newAccountsServer<OurUser>({// The database adapter used for the users and sessionsdb: newMongoDBInterface(db),// A strong random secrettokenSecret: config.get('accounts.secret'),createJwtPayload: async(data,user)=>{console.log('Customizing JWT:',data,user)constnextcloudData=_.get(user.services,'nextcloud')// ...},},{oauth: newAccountsOauth({nextcloud: newAccountsNextcloudProvider(),}),},)
Expected behavior
createJwtPayload is called with services info also the first time.
Bug report
Describe the bug
createJwtPayload called without services info on registration:
even though
getRegistrationPayload
is called before that.When I log out & log in again, it is called correctly:
To Reproduce
Expected behavior
createJwtPayload is called with services info also the first time.
System information
├─ @accounts/[email protected]
│ ├─ @accounts/types@^0.29.0
├─ @accounts/[email protected]
├─ @accounts/[email protected]
│ ├─ @accounts/types@^0.29.0
├─ @accounts/[email protected]
│ ├─ @accounts/types@^0.29.0
├─ @accounts/[email protected]
│ ├─ @accounts/two-factor@^0.29.0
├─ @accounts/[email protected]
│ ├─ @accounts/types@^0.29.0
├─ @accounts/[email protected]
│ ├─ @accounts/types@^0.29.0
├─ @accounts/[email protected]
The text was updated successfully, but these errors were encountered: