providers/wealthbox
WealthboxProfile
Properties
accounts?
optional accounts: {
created_at: Date;
id: number;
name: string;
}[];
created_at?
optional created_at: Date;
current_user?
optional current_user: {
account: number;
email: string;
id: number;
name: string;
};
account
account: number;
email: string;
id
id: number;
name
name: string;
email: string;
first_name
first_name: string;
id
id: string;
last_name
last_name: string;
name
name: string;
plan
plan: string;
updated_at?
optional updated_at: Date;
users?
optional users: {
account: number;
email: string;
id: number;
name: string;
}[];
default()
default<P>(config): OAuthConfig<P>
Add Wealthbox login to your page.
Setup
Callback URL
https://example.com/api/auth/callback/wealthbox
Configuration
import { Auth } from "@auth/core"
import Wealthbox from "@auth/core/providers/wealthbox"
const request = new Request(origin)
const response = await Auth(request, {
providers: [
Wealthbox({
clientId: WEALTHBOX_CLIENT_ID,
clientSecret: WEALTHBOX_CLIENT_SECRET,
redirectUri: WEALTHBOX_REDIRECT_URI
}),
],
})
Resources
### Type parameters
| Type parameter |
| :------ |
| `P` extends [`WealthboxProfile`](wealthbox.mdx#wealthboxprofile) |
### Parameters
| Parameter | Type |
| :------ | :------ |
| `config` | [`OAuthUserConfig`](../providers.mdx#oauthuserconfigprofile)\<`P`\> & `AdditionalConfig` |
### Returns
[`OAuthConfig`](../providers.mdx#oauthconfigprofile)\<`P`\>